diff options
Diffstat (limited to 'src/assuan-defs.h')
-rw-r--r-- | src/assuan-defs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h index da2a9d7..8a3fcc2 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -58,6 +58,14 @@ #define _assuan_error(ctx, errcode) gpg_err_make ((ctx)->err_source, errcode) +struct cmdtbl_s +{ + const char *name; + assuan_handler_t handler; + const char *helpstr; +}; + + /* The context we use with most functions. */ struct assuan_context_s @@ -188,7 +196,7 @@ struct assuan_context_s gpg_error_t (*accept_handler)(assuan_context_t); void (*finish_handler)(assuan_context_t); - assuan_command_t cmdtbl; + struct cmdtbl_s *cmdtbl; size_t cmdtbl_used; /* used entries */ size_t cmdtbl_size; /* allocated size of table */ @@ -205,7 +213,7 @@ struct assuan_context_s assuan_handler_t output_notify_fnc; /* This function is called right before a command handler is called. */ - gpg_error_t (*pre_cmd_notify_fnc)(assuan_context_t, assuan_command_t); + gpg_error_t (*pre_cmd_notify_fnc)(assuan_context_t, const char *cmd); /* This function is called right after a command has been processed. It may be used to command related cleanup. */ |