forked from mathslinux/lwqq
-
Notifications
You must be signed in to change notification settings - Fork 25
/
config.h.in
58 lines (44 loc) · 1.3 KB
/
config.h.in
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
#ifndef _LWQQ_CONFIG_H__
#define _LWQQ_CONFIG_H__
#cmakedefine WITH_LIBEV
#cmakedefine WITH_LIBUV
#cmakedefine WITH_SQLITE
#cmakedefine WITHOUT_ASYNC
#cmakedefine WITH_MOZJS
#cmakedefine MOZJS_185
#cmakedefine MOZJS_17
#cmakedefine HAVE_STRTOK_R
// using open_memstream in http.c
// direct write response to mem file
#cmakedefine HAVE_OPEN_MEMSTREAM
#define LWQQ_VERSION "@VERSION@"
#define RES_DIR "@RES_DIR@"
// use a single thread to poll message
// default: disabled
// note default value is good enough, it run poll in libev, asynced,
#cmakedefine USE_MSG_THREAD
//detach thread without join it
#define DETACH_THREAD @QUICK_QUIT@
//write discu into database
#define DISCU_READ_DB 1
// when continuly poll_msg_lost happend {?} times, send relink
// default : 5
#define RETRY_BEFORE_RELINK 4
// set poll_msg timeout {?} seconds
// default : 90
#define POLL_MSG_TIMEOUT 75
#define OFFPIC_USE_WQQ
#define LWQQ_MAGIC 0x4153
#define LWQQ_DEFAULT_CATE "My Friends"
#define LWQQ_PASSERBY_CATE "Passerby"
#define LWQQ_RETRY_VALUE 3
#define LWQQ_CACHE_DIR "/tmp/lwqq"
typedef enum {
LWQQ_WITH_LIBEV = 1 << 0,
LWQQ_WITH_LIBUV = 1 << 1,
LWQQ_WITH_SQLITE = 1 << 2,
LWQQ_WITH_MOZJS = 1 << 3,
LWQQ_WITH_SSL = 1 << 4,
LWQQ_WITH_ASYNCHDNS = 1 << 5
} LwqqFeatures;
#endif /* __CONFIG_H__ */