acl  3.5.3.0
acl_trigger_params.h
浏览该文件的文档.
1 #ifndef ACL_TRIGGER_PARAMS_INCLUDE_H
2 #define ACL_TRIGGER_PARAMS_INCLUDE_H
3 
4 #include "../stdlib/acl_define.h"
5 
6 #ifndef ACL_CLIENT_ONLY
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #ifdef ACL_UNIX
13 
14 extern int acl_var_trigger_pid; /* get by call getpid() */
15 extern char *acl_var_trigger_procname; /* get from trigger_main()'s argv[0] */
16 extern char *acl_var_trigger_log_file; /* get from getenv("LOG") */
17 
18 #define ACL_VAR_TRIGGER_BUF_SIZE "trigger_buf_size"
19 #define ACL_DEF_TRIGGER_BUF_SIZE 81920
20 extern int acl_var_trigger_buf_size;
21 
22 #define ACL_VAR_TRIGGER_RW_TIMEOUT "trigger_rw_timeout"
23 #define ACL_DEF_TRIGGER_RW_TIMEOUT 30
24 extern int acl_var_trigger_rw_timeout;
25 
26 #define ACL_VAR_TRIGGER_IN_FLOW_DELAY "trigger_in_flow_delay"
27 #define ACL_DEF_TRIGGER_IN_FLOW_DELAY 1
28 extern int acl_var_trigger_in_flow_delay;
29 
30 #define ACL_VAR_TRIGGER_IDLE_LIMIT "trigger_idle_limit"
31 #define ACL_DEF_TRIGGER_IDLE_LIMIT 0
32 extern int acl_var_trigger_idle_limit;
33 
34 #define ACL_VAR_TRIGGER_QUEUE_DIR "trigger_queue_dir"
35 #define ACL_DEF_TRIGGER_QUEUE_DIR "/opt/acl_master/var/queue"
36 extern char *acl_var_trigger_queue_dir;
37 
38 #define ACL_VAR_TRIGGER_PID_DIR "trigger_pid_dir"
39 #define ACL_DEF_TRIGGER_PID_DIR "/opt/acl_master/var/pid"
40 extern char *acl_var_trigger_pid_dir;
41 
42 #define ACL_VAR_TRIGGER_OWNER "trigger_owner"
43 #define ACL_DEF_TRIGGER_OWNER "trigger"
44 extern char *acl_var_trigger_owner;
45 
46 #define ACL_VAR_TRIGGER_DELAY_SEC "trigger_delay_sec"
47 #define ACL_DEF_TRIGGER_DELAY_SEC 1
48 extern int acl_var_trigger_delay_sec;
49 
50 #define ACL_VAR_TRIGGER_DELAY_USEC "trigger_delay_usec"
51 #define ACL_DEF_TRIGGER_DELAY_USEC 5000
52 extern int acl_var_trigger_delay_usec;
53 
54 #define ACL_VAR_TRIGGER_DAEMON_TIMEOUT "trigger_daemon_timeout"
55 #define ACL_DEF_TRIGGER_DAEMON_TIMEOUT 1800
56 extern int acl_var_trigger_daemon_timeout;
57 
58 #define ACL_VAR_TRIGGER_USE_LIMIT "trigger_use_limit"
59 #define ACL_DEF_TRIGGER_USE_LIMIT 0
60 extern int acl_var_trigger_use_limit;
61 
62 #define ACL_VAR_TRIGGER_ENABLE_CORE "trigger_enable_core"
63 #define ACL_DEF_TRIGGER_ENABLE_CORE 1
64 extern int acl_var_trigger_enable_core;
65 
66 #define ACL_VAR_TRIGGER_DISABLE_CORE_ONEXIT "trigger_disable_core_onexit"
67 #define ACL_DEF_TRIGGER_DISABLE_CORE_ONEXIT 1
68 extern int acl_var_trigger_disable_core_onexit;
69 
70 #define ACL_VAR_TRIGGER_CORE_LIMIT "trigger_core_limit"
71 #define ACL_DEF_TRIGGER_CORE_LIMIT -1
72 extern long long int acl_var_trigger_core_limit;
73 
74 #define ACL_VAR_TRIGGER_LOG_DEBUG "master_debug"
75 #define ACL_DEF_TRIGGER_LOG_DEBUG ""
76 extern char *acl_var_trigger_log_debug;
77 
78 #define ACL_VAR_TRIGGER_MAX_DEBUG "master_debug_max"
79 #define ACL_DEF_TRIGGER_MAX_DEBUG 1000
80 extern int acl_var_trigger_max_debug;
81 
82 #endif /* ACL_UNIX */
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* ACL_CLIENT_ONLY */
89 #endif
90