-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathah_config.h
59 lines (50 loc) · 1.24 KB
/
ah_config.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
51
52
53
54
55
56
57
58
/*
* Description:
* History: yang@haipo.me, 2017/04/21, create
*/
# ifndef _AH_CONFIG_H_
# define _AH_CONFIG_H_
# include <math.h>
# include <stdio.h>
# include <error.h>
# include <errno.h>
# include <ctype.h>
# include <string.h>
# include <stdlib.h>
# include <unistd.h>
# include <assert.h>
# include <inttypes.h>
# include "nw_svr.h"
# include "nw_clt.h"
# include "nw_job.h"
# include "nw_timer.h"
# include "nw_state.h"
# include "ut_log.h"
# include "ut_sds.h"
# include "ut_cli.h"
# include "ut_misc.h"
# include "ut_list.h"
# include "ut_signal.h"
# include "ut_config.h"
# include "ut_rpc_clt.h"
# include "ut_rpc_svr.h"
# include "ut_rpc_cmd.h"
# include "ut_http_svr.h"
# define AH_LISTENER_BIND "seqpacket@/tmp/currency_server_listener.sock"
struct settings {
process_cfg process;
log_cfg log;
alert_cfg alert;
http_svr_cfg svr;
nw_svr_cfg monitor;
double timeout;
int worker_num;
char * excutor;
char * node;
char * passwd;
char * funds_user;
char * contract_user;
};
extern struct settings settings;
int init_config(const char *path);
# endif