diff options
Diffstat (limited to 'src/assuan-defs.h')
-rw-r--r-- | src/assuan-defs.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 88863eb..da2a9d7 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -58,14 +58,6 @@ #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 @@ -196,7 +188,7 @@ struct assuan_context_s gpg_error_t (*accept_handler)(assuan_context_t); void (*finish_handler)(assuan_context_t); - struct cmdtbl_s *cmdtbl; + assuan_command_t cmdtbl; size_t cmdtbl_used; /* used entries */ size_t cmdtbl_size; /* allocated size of table */ @@ -212,6 +204,9 @@ struct assuan_context_s assuan_handler_t input_notify_fnc; 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); + /* This function is called right after a command has been processed. It may be used to command related cleanup. */ void (*post_cmd_notify_fnc)(assuan_context_t, gpg_error_t); |