summaryrefslogtreecommitdiff
path: root/accel-pptpd/cli/cli.h
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-12-30 15:38:10 +0300
committerKozlov Dmitry <dima@server>2010-12-30 15:38:16 +0300
commit95a19e0c5c622e8e886ff822ea48d28f7bceced4 (patch)
treec7603734bbe8e792855c48d1d4d630cbc16c4f91 /accel-pptpd/cli/cli.h
parent124c5fc81f2bfa14d60f645257cfc4d978756c54 (diff)
downloadaccel-ppp-95a19e0c5c622e8e886ff822ea48d28f7bceced4.tar.gz
accel-ppp-95a19e0c5c622e8e886ff822ea48d28f7bceced4.zip
cli: removed old "show sessions" code
shaper_tbf: add column "rate-limit" for "show sessions"
Diffstat (limited to 'accel-pptpd/cli/cli.h')
-rw-r--r--accel-pptpd/cli/cli.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pptpd/cli/cli.h b/accel-pptpd/cli/cli.h
index ae452bc..cdceb2f 100644
--- a/accel-pptpd/cli/cli.h
+++ b/accel-pptpd/cli/cli.h
@@ -29,6 +29,8 @@ struct cli_regexp_cmd_t
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),
@@ -37,6 +39,7 @@ void cli_register_simple_cmd2(
...
);
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, ...);