summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/cli_p.h
blob: 0fcba309f92ed422019200674ecb946cadeba58c (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 char *conf_cli_prompt;

#endif