00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 #ifndef INTERNAL_CONFIG_H
00054 #define INTERNAL_CONFIG_H
00055
00063
00073 #define THREAD_IDLE_TIME 30000
00074
00075
00085 #define JOBS_PER_THREAD 1
00086
00087
00098 #define MIN_THREADS 2
00099
00100
00113 #define MAX_THREADS 12
00114
00115
00124 #define MAX_JOBS_TOTAL 100
00125
00126
00134 #define DEFAULT_SOAP_CONTENT_LENGTH 16000
00135
00136
00143 #define NUM_SSDP_COPY 2
00144
00145
00152 #define SSDP_PAUSE 100
00153
00154
00160 #define WEB_SERVER_BUF_SIZE (1024*1024)
00161
00162
00174 #define AUTO_RENEW_TIME 10
00175
00176
00186 #define CP_MINIMUM_SUBSCRIPTION_TIME (AUTO_RENEW_TIME + 5)
00187
00188
00197 #define MAX_SEARCH_TIME 80
00198
00199
00208 #define MIN_SEARCH_TIME 2
00209
00210
00211
00219 #define AUTO_ADVERTISEMENT_TIME 30
00220
00221
00232 #define SSDP_PACKET_DISTRIBUTE 1
00233
00234
00235
00246 #define WEB_SERVER_BLOCK_TIMEOUT 3
00247
00248
00268 #define EXCLUDE_SSDP 0
00269 #define EXCLUDE_SOAP 0
00270 #define EXCLUDE_GENA 0
00271 #define EXCLUDE_DOM 0
00272 #define EXCLUDE_MINISERVER 0
00273 #define EXCLUDE_WEB_SERVER 0
00274 #ifdef USE_JNI
00275 # define EXCLUDE_JNI 0
00276 #else
00277 # define EXCLUDE_JNI 1
00278 #endif
00279
00280
00281
00290 #define DEBUG_TARGET 1
00291
00292
00293
00299 #define DEBUG_ALL 1
00300 #define DEBUG_SSDP 0
00301 #define DEBUG_SOAP 0
00302 #define DEBUG_GENA 0
00303 #define DEBUG_TPOOL 0
00304 #define DEBUG_MSERV 0
00305 #define DEBUG_DOM 0
00306 #define DEBUG_HTTP 0
00307 #define DEBUG_API 0
00308
00310
00311
00312
00313
00314
00315
00317
00318
00319
00320
00321
00322
00323 #if UPNP_HAVE_CLIENT
00324 # define INCLUDE_CLIENT_APIS 1
00325 #endif
00326
00327
00328 #if UPNP_HAVE_DEVICE
00329 # define INCLUDE_DEVICE_APIS 1
00330 #endif
00331
00332
00333 #if UPNP_HAVE_WEBSERVER
00334 # define INTERNAL_WEB_SERVER 1
00335 #endif
00336
00337
00338
00351 #ifdef DEBUG
00352 # define DBGONLY(x) x
00353 #else
00354 # define DBGONLY(x)
00355 #endif
00356
00357
00358
00359
00360 #undef EXCLUDE_WEB_SERVER
00361 #undef EXCLUDE_MINISERVER
00362 #ifdef INTERNAL_WEB_SERVER
00363 # define EXCLUDE_WEB_SERVER 0
00364 # define EXCLUDE_MINISERVER 0
00365 #else
00366 # define EXCLUDE_WEB_SERVER 1
00367 # define EXCLUDE_MINISERVER 1
00368 #endif
00369
00370 #if EXCLUDE_GENA == 1 && EXCLUDE_SOAP == 1 && EXCLUDE_WEB_SERVER == 1
00371 # undef EXCLUDE_MINISERVER
00372 # define EXCLUDE_MINISERVER 1
00373 # if INTERNAL_WEB_SERVER
00374 # error "conflicting settings: use configure --disable-webserver"
00375 # endif
00376 #endif
00377
00378 #if EXCLUDE_GENA == 0 || EXCLUDE_SOAP == 0 || EXCLUDE_WEB_SERVER == 0
00379 # undef EXCLUDE_MINISERVER
00380 # define EXCLUDE_MINISERVER 0
00381 # if EXCLUDE_WEB_SERVER == 0 && !defined INTERNAL_WEB_SERVER
00382 # error "conflicting settings : use configure --enable-webserver"
00383 # endif
00384 #endif
00385
00386
00387
00388 #ifdef INCLUDE_CLIENT_APIS
00389 # define CLIENTONLY(x) x
00390 #else
00391 # define CLIENTONLY(x)
00392 #endif
00393
00394 #ifdef INCLUDE_DEVICE_APIS
00395 # define DEVICEONLY(x) x
00396 #else
00397 # define DEVICEONLY(x)
00398 #endif
00399
00401 #endif