core: use string instead of compound literal
[rofl0r-proxychains-ng.git] / src / common.h
blob91468bc81dc661ca571ded571ef28ac77080d3b0
1 #ifndef COMMON_H
2 #define COMMON_H
4 #define PROXYCHAINS_CONF_FILE_ENV_VAR "PROXYCHAINS_CONF_FILE"
5 #define PROXYCHAINS_QUIET_MODE_ENV_VAR "PROXYCHAINS_QUIET_MODE"
6 #define PROXYCHAINS_CONF_FILE "proxychains.conf"
7 #define LOG_PREFIX "[proxychains] "
8 #ifndef SYSCONFDIR
9 #define SYSCONFDIR "/etc"
10 #endif
12 #include <stddef.h>
14 extern const char *proxy_type_strmap[];
15 extern const char *chain_type_strmap[];
16 extern const char *proxy_state_strmap[];
18 char *get_config_path(char* default_path, char* pbuf, size_t bufsize);
19 void pc_stringfromipv4(unsigned char *ip_buf_4_bytes, char *outbuf_16_bytes);
20 int pc_isnumericipv4(const char* ipstring);
22 //RcB: DEP "common.c"
23 #endif