-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.h
50 lines (42 loc) · 1.07 KB
/
init.h
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
43
44
45
46
47
48
49
50
#ifndef INIT_H
#define INIT_H
#include <stdbool.h>
#include <stdio.h>
#define STDOUT_FD 3
#define STDERR_FD 4
#ifdef __ANDROID__
#define OPT_B "be.ucl.tcpsnitch.opt_b"
#define OPT_C "be.ucl.tcpsnitch.opt_c"
#define OPT_D "be.ucl.tcpsnitch.opt_d"
#define OPT_F "be.ucl.tcpsnitch.opt_f"
#define OPT_L "be.ucl.tcpsnitch.opt_l"
#define OPT_T "be.ucl.tcpsnitch.opt_t"
#define OPT_U "be.ucl.tcpsnitch.opt_u"
#define OPT_V "be.ucl.tcpsnitch.opt_v"
#else
#define OPT_B "TCPSNITCH_OPT_B"
#define OPT_C "TCPSNITCH_OPT_C"
#define OPT_D "TCPSNITCH_OPT_D"
#define OPT_F "TCPSNITCH_OPT_F"
#define OPT_L "TCPSNITCH_OPT_L"
#define OPT_T "TCPSNITCH_OPT_T"
#define OPT_U "TCPSNITCH_OPT_U"
#define OPT_V "TCPSNITCH_OPT_V"
#endif
extern long conf_opt_b;
extern long conf_opt_c;
extern char *conf_opt_d;
extern long conf_opt_f;
extern long conf_opt_l;
extern long conf_opt_p;
extern long conf_opt_u;
extern long conf_opt_t;
extern long conf_opt_v;
extern char *logs_dir_path;
#ifndef __ANDROID__
extern FILE *_stdout;
extern FILE *_stderr;
#endif
void reset_tcpsnitch(void);
void init_tcpsnitch(void);
#endif