diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 15:18:59 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 15:18:59 +0300 |
commit | f28cb1b0a926f1ea98700b7871537ad1793511fd (patch) | |
tree | baf35570bc6b38b6fab5b6524e8f19f58f71e57f /accel-pptpd/cli/cli.h | |
parent | 2fdf3586c13a72c36f9530084962e29d57dc0329 (diff) | |
download | accel-ppp-f28cb1b0a926f1ea98700b7871537ad1793511fd.tar.gz accel-ppp-f28cb1b0a926f1ea98700b7871537ad1793511fd.zip |
rename accel-pptp to accel-ppp
Diffstat (limited to 'accel-pptpd/cli/cli.h')
-rw-r--r-- | accel-pptpd/cli/cli.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/accel-pptpd/cli/cli.h b/accel-pptpd/cli/cli.h deleted file mode 100644 index cdceb2fa..00000000 --- a/accel-pptpd/cli/cli.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef __CLI_H -#define __CLI_H - -#include <pcre.h> -#include <list.h> - -#define CLI_CMD_OK 0 -#define CLI_CMD_FAILED -1 -#define CLI_CMD_EXIT -2 -#define CLI_CMD_SYNTAX 1 -#define CLI_CMD_INVAL 2 - -struct cli_simple_cmd_t -{ - struct list_head entry; - int hdr_len; - const char **hdr; - int (*exec)(const char *cmd, char * const *fields, int fields_cnt, void *client); - void (*help)(char * const *fields, int field_cnt, void *client); -}; - -struct cli_regexp_cmd_t -{ - struct list_head entry; - pcre *re; - const char *pattern; - int options; - int (*exec)(const char *cmd, void *client); - int (*help)(char * const *fields, int field_cnt, void *client); -}; - -struct ppp_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); -void cli_show_ses_register(const char *name, const char *desc, void (*print)(const struct ppp_t *ppp, char *buf)); - -int cli_send(void *client, const char *data); -int cli_sendv(void *client, const char *fmt, ...); - -#endif - |