config.h
/**************************************************************************
*
* Copyright (c) 2000-2003 Intel Corporation
* All rights reserved.
* Copyright (c) 2012 France Telecom All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* - Neither name of Intel Corporation nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
**************************************************************************/
#ifndef INTERNAL_CONFIG_H
#define INTERNAL_CONFIG_H
#include "autoconfig.h"
#define THREAD_IDLE_TIME 5000
/* @} */
#define JOBS_PER_THREAD 10
/* @} */
#define MIN_THREADS 2
/* @} */
#define MAX_THREADS 12
/* @} */
#define THREAD_STACK_SIZE (size_t)0
/* @} */
#define MAX_JOBS_TOTAL 100
/* @} */
#define MAX_SUBSCRIPTION_QUEUED_EVENTS 10
/* @} */
#define MAX_SUBSCRIPTION_EVENT_AGE 30
/* @} */
#define DEFAULT_SOAP_CONTENT_LENGTH 16000
/* @} */
#define NUM_SSDP_COPY 2
/* @} */
#define SSDP_PAUSE 100u
/* @} */
#define WEB_SERVER_BUF_SIZE (size_t)(1024 * 1024)
/* @} */
#define WEB_SERVER_CONTENT_LANGUAGE ""
/* @} */
#define AUTO_RENEW_TIME 10
/* @} */
#define CP_MINIMUM_SUBSCRIPTION_TIME (AUTO_RENEW_TIME + 5)
/* @} */
#define MAX_SEARCH_TIME 80
/* @} */
#define MIN_SEARCH_TIME 2
/* @} */
#define AUTO_ADVERTISEMENT_TIME 30
/* @} */
#define SSDP_PACKET_DISTRIBUTE 1
/* @} */
#define GENA_NOTIFICATION_SENDING_TIMEOUT HTTP_DEFAULT_TIMEOUT
/* @} */
#define GENA_NOTIFICATION_ANSWERING_TIMEOUT HTTP_DEFAULT_TIMEOUT
/* @} */
#define EXCLUDE_SSDP 0
#define EXCLUDE_SOAP 0
#define EXCLUDE_GENA 0
#define EXCLUDE_DOM 0
#define EXCLUDE_MINISERVER 0
#define EXCLUDE_WEB_SERVER 0
#ifdef USE_JNI
#define EXCLUDE_JNI 0
#else
#define EXCLUDE_JNI 1
#endif
/* @} */
#define DEBUG_ALL 1
#define DEBUG_SSDP 0
#define DEBUG_SOAP 0
#define DEBUG_GENA 0
#define DEBUG_TPOOL 0
#define DEBUG_MSERV 0
#define DEBUG_DOM 0
#define DEBUG_HTTP 0
#define DEBUG_API 0
/*
* @} Compile time configuration options
*/
/***************************************************************************
* Do not change, Internal purpose only!!!
***************************************************************************/
/*
* Set additional defines based on requested configuration
*/
/* configure --enable-client */
#if UPNP_HAVE_CLIENT
#define INCLUDE_CLIENT_APIS 1
#endif
/* configure --enable-device */
#if UPNP_HAVE_DEVICE
#define INCLUDE_DEVICE_APIS 1
#endif
/* configure --enable-webserver */
#if UPNP_HAVE_WEBSERVER
#define INTERNAL_WEB_SERVER 1
#endif
/* configure --enable-ssdp */
#undef EXCLUDE_SSDP
#if UPNP_HAVE_SSDP
#define EXCLUDE_SSDP 0
#else
#define EXCLUDE_SSDP 1
#endif
/* configure --enable-soap */
#undef EXCLUDE_SOAP
#if UPNP_HAVE_SOAP
#define EXCLUDE_SOAP 0
#else
#define EXCLUDE_SOAP 1
#endif
/* configure --enable-gena */
#undef EXCLUDE_GENA
#if UPNP_HAVE_GENA
#define EXCLUDE_GENA 0
#else
#define EXCLUDE_GENA 1
#endif
#undef EXCLUDE_WEB_SERVER
#undef EXCLUDE_MINISERVER
#ifdef INTERNAL_WEB_SERVER
#define EXCLUDE_WEB_SERVER 0
#define EXCLUDE_MINISERVER 0
#else
#define EXCLUDE_WEB_SERVER 1
#define EXCLUDE_MINISERVER 1
#endif
#if EXCLUDE_SSDP == 1 && EXCLUDE_GENA == 1 && EXCLUDE_SOAP == 1 && \
EXCLUDE_WEB_SERVER == 1
#undef EXCLUDE_MINISERVER
#define EXCLUDE_MINISERVER 1
#if INTERNAL_WEB_SERVER
#error "conflicting settings: use configure --disable-webserver"
#endif
#endif
#if EXCLUDE_SSDP == 0 || EXCLUDE_GENA == 0 || EXCLUDE_SOAP == 0 || \
EXCLUDE_WEB_SERVER == 0
#undef EXCLUDE_MINISERVER
#define EXCLUDE_MINISERVER 0
#if EXCLUDE_WEB_SERVER == 0 && !defined INTERNAL_WEB_SERVER
#error "conflicting settings : use configure --enable-webserver"
#endif
#endif
/*
* @}
*/
#endif /* INTERNAL_CONFIG_H */