diff options
Diffstat (limited to 'accel-pptpd/cli/cli.h')
-rw-r--r-- | accel-pptpd/cli/cli.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/accel-pptpd/cli/cli.h b/accel-pptpd/cli/cli.h index aec62fd3..af6fd98a 100644 --- a/accel-pptpd/cli/cli.h +++ b/accel-pptpd/cli/cli.h @@ -15,7 +15,7 @@ struct cli_simple_cmd_t int hdr_len; const char **hdr; int (*exec)(const char *cmd, char * const *fields, int fields_cnt, void *client); - int (*help)(char * const *fields, int field_cnt, void *client); + void (*help)(char * const *fields, int field_cnt, void *client); }; struct cli_regexp_cmd_t @@ -29,9 +29,16 @@ struct cli_regexp_cmd_t }; void cli_register_simple_cmd(struct cli_simple_cmd_t *cmd); +void cli_register_simple_cmd2( + int (*exec)(const char *cmd, char * const *fields, int fields_cnt, void *client), + void (*help)(char * const *fields, int fields_cnt, void *client), + int hdr_len, + ... + ); void cli_register_regexp_cmd(struct cli_regexp_cmd_t *cmd); int cli_send(void *client, const char *data); +int cli_sendv(void *client, const char *fmt, ...); #endif |