summaryrefslogtreecommitdiff
path: root/accel-pptpd/cli/cli_p.h
blob: 9e3e6cf41df59fdb6bb4462a110cac92256b8a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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