summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton/triton_p.h
blob: fae48487edae984ec915a8ab1e783400f80bb1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef TRITON_P_H
#define TRITON_P_H

#include "triton.h"
#include "list.h"

#include <stdarg.h>

#define MAX_ARGS 32

struct option_t
{
	struct list_head entry;

	char *name;
	char *val;
};

struct timer_t
{
	struct list_head entry;
	int del;
	struct triton_timer_t *timer;
};

struct timer_single_shot_t
{
	struct list_head entry;

	struct timeval expire_tv;
	int arg_cnt;
	void *args;
	triton_ss_func ss_func;
};

extern void md_run();
extern void md_terminate();
extern void timer_run();
extern void timer_terminate();
extern struct triton_ctx_t *default_ctx;

#endif