diff options
| author | Kozlov Dmitry <dima@server> | 2010-11-13 15:22:11 +0300 |
|---|---|---|
| committer | Kozlov Dmitry <dima@server> | 2010-11-13 15:22:11 +0300 |
| commit | a49ab300966aa7fa58c75662dfce16b409b17751 (patch) | |
| tree | 74b6a6851be4622e0184c086cea73c97f7839423 /accel-pptpd/cli/cli_p.h | |
| parent | ed0ad05fccab77caf9f26160c2fbd5f830e5b13c (diff) | |
| download | accel-ppp-a49ab300966aa7fa58c75662dfce16b409b17751.tar.gz accel-ppp-a49ab300966aa7fa58c75662dfce16b409b17751.zip | |
cli: implemented tcp frontend to send batch commands
Diffstat (limited to 'accel-pptpd/cli/cli_p.h')
| -rw-r--r-- | accel-pptpd/cli/cli_p.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/accel-pptpd/cli/cli_p.h b/accel-pptpd/cli/cli_p.h new file mode 100644 index 0000000..9e3e6cf --- /dev/null +++ b/accel-pptpd/cli/cli_p.h @@ -0,0 +1,22 @@ +#ifndef __CLI_P_H +#define __CLI_P_H + +#include <stdarg.h> + +#include "triton.h" + +struct cli_client_t +{ + uint8_t *cmdline; + int (*send)(struct cli_client_t *, const void *buf, int size); + int (*sendv)(struct cli_client_t *, const char *fmt, va_list ap); + void (*disconnect)(struct cli_client_t *); +}; + +int cli_process_cmd(struct cli_client_t *cln); + +extern char *conf_cli_passwd; +extern const char *conf_cli_prompt; + +#endif + |
