Mercurial > pidgin
annotate libfaim/faim/faimconfig.h @ 1094:3deadbe50737
[gaim-migrate @ 1104]
making make distcheck work
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 14 Nov 2000 10:34:10 +0000 |
| parents | e1da6a6ec42b |
| children |
| rev | line source |
|---|---|
| 283 | 1 /* |
| 2 * faimconfig.h | |
| 3 * | |
| 4 * Contains various compile-time options that apply _only_ to libfaim. | |
| 5 * Note that setting any of these options in a frontend header does not imply | |
| 6 * that they'll get set here. Notably, the 'debug' of this file is _not_ | |
| 7 * the same as the frontend 'debug'. They can be different values. | |
| 8 * | |
| 9 */ | |
| 10 | |
| 11 #ifndef __FAIMCONFIG_H__ | |
| 12 #define __FAIMCONFIG_H__ | |
| 13 | |
| 14 /* | |
| 15 * set debug to be > 0 if you want debugging information spewing | |
| 16 * on the attached tty. set to 0 for daily use. this value | |
| 17 * is _not_ inherited by the frontend, only this backend. | |
| 18 * | |
| 19 * Default: 0 | |
| 20 */ | |
| 21 #define debug 0 | |
| 22 | |
| 23 /* | |
| 24 * Maximum number of connections the library can simultaneously | |
| 25 * handle per session structure. Five is fairly arbitrary. | |
| 26 * | |
| 27 * Normally, only one connection gets used at a time. However, if | |
| 28 * chat is used, its easily possible for several connections to be | |
| 29 * open simultaneously. | |
| 30 * | |
| 31 * Normal connection list looks like this: | |
| 32 * 1 -- used for authentication at login (closed after login) | |
| 33 * 1 -- used for BOS (general messaging) (stays open for entire session) | |
| 34 * 1 -- used for chatnav (room creation, etc) (opened at random) | |
| 35 * 1n -- used for n connected chat rooms (AOL limits to three) | |
| 36 * | |
| 37 * Default: 7 | |
| 38 * | |
| 39 */ | |
| 40 #define AIM_CONN_MAX 7 | |
| 41 | |
| 42 /* | |
| 43 * USE_SNAC_FOR_IMS is an old feature that allowed better | |
| 44 * tracking of error messages by caching SNAC IDs of outgoing | |
| 45 * ICBMs and comparing them to incoming errors. However, | |
| 46 * its a helluvalot of overhead for something that should | |
| 47 * rarely happen. | |
| 48 * | |
| 49 * Default: defined. This is now defined by default | |
| 50 * because it should be stable and its not too bad. | |
| 51 * And Josh wanted it. | |
| 52 * | |
| 53 */ | |
| 54 #define USE_SNAC_FOR_IMS | |
| 55 | |
| 56 /* | |
| 57 * Default Authorizer server name and TCP port for the OSCAR farm. | |
| 58 * | |
| 59 * You shouldn't need to change this unless you're writing | |
| 60 * your own server. | |
| 61 * | |
| 62 * Note that only one server is needed to start the whole | |
| 63 * AIM process. The later server addresses come from | |
| 64 * the authorizer service. | |
| 65 * | |
| 66 * This is only here for convenience. Its still up to | |
| 67 * the client to connect to it. | |
| 68 * | |
| 69 */ | |
| 70 #define FAIM_LOGIN_SERVER "login.oscar.aol.com" | |
| 71 #define FAIM_LOGIN_PORT 5190 | |
| 72 | |
| 73 /* | |
| 74 * The integer extraction/copying functions in aim_util.c have | |
| 75 * both a function version and a macro version. The macro | |
| 76 * version is suggested. Since the function version is more | |
| 77 * readable, I leave both around for reference. | |
| 78 * | |
| 79 * Default: defined. | |
| 80 */ | |
| 81 #define AIMUTIL_USEMACROS | |
| 82 | |
| 83 /* | |
| 84 * Select whether or not to use POSIX thread functionality. | |
| 85 * | |
|
445
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
86 * We don't actually use threads, but we do use the POSIX mutex |
|
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
87 * in order to maintain thread safety. You can use the fake locking |
|
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
88 * if you really don't like pthreads or you don't have it. |
|
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
89 * |
|
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
90 * Default: defined on Linux, otherwise use fake locks. |
| 283 | 91 */ |
| 92 #ifdef __linux__ | |
| 93 #define FAIM_USEPTHREADS | |
|
445
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
94 #else |
|
e4c34ca88d9b
[gaim-migrate @ 455]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
317
diff
changeset
|
95 #define FAIM_USEFAKELOCKS |
| 283 | 96 #endif |
| 97 | |
|
715
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
98 /* |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
99 * Size of the SNAC caching hash. |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
100 * |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
101 * Default: 16 |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
102 * |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
103 */ |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
104 #define FAIM_SNAC_HASH_SIZE 16 |
|
58106806ac2b
[gaim-migrate @ 725]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
445
diff
changeset
|
105 |
|
889
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
106 /* |
|
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
107 * If building on Win32,define WIN32_STATIC if you don't want |
|
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
108 * to compile libfaim as a DLL (and instead link it right into |
|
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
109 * your app). |
|
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
110 */ |
|
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
111 #define WIN32_STATIC |
|
e1da6a6ec42b
[gaim-migrate @ 899]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
741
diff
changeset
|
112 |
| 283 | 113 #endif /* __FAIMCONFIG_H__ */ |
| 114 | |
| 115 |
