1 /* $Id$ */ 2 /* 3 * Copyright (C) 2013 Teluu Inc. (http://www.teluu.com) 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 #ifndef __PJSUA2_CONFIG_HPP__ 20 #define __PJSUA2_CONFIG_HPP__ 21 22 /** 23 * @file pjsua2/config.hpp 24 * @brief PJSUA2 Base Agent Operation 25 */ 26 #include <pjsua-lib/pjsua.h> 27 28 /** 29 * @defgroup PJSUA2_CFG_Compile Compile time settings 30 * @ingroup PJSUA2_DS 31 * @{ 32 */ 33 34 /** 35 * Specify if the Error exception info should contain operation and source 36 * file information. 37 */ 38 #ifndef PJSUA2_ERROR_HAS_EXTRA_INFO 39 # define PJSUA2_ERROR_HAS_EXTRA_INFO 1 40 #endif 41 42 /** 43 * Maximum buffer length to print SDP content for SdpSession. Set this to 0 44 * if the printed SDP is not needed. 45 */ 46 #ifndef PJSUA2_MAX_SDP_BUF_LEN 47 # define PJSUA2_MAX_SDP_BUF_LEN 1024 48 #endif 49 50 /** 51 * Ticket #2189 described some lists of objects which is not thread safe. 52 * The ticket deprecated some APIs which uses those lists and introduce new one 53 * to replace them. This settings will disable the deprecated API all together. 54 * See also https://trac.pjsip.org/repos/ticket/2232 55 */ 56 #ifndef DEPRECATED_FOR_TICKET_2232 57 # define DEPRECATED_FOR_TICKET_2232 1 58 #endif 59 60 /* 61 * C++11 deprecated dynamic exception specification, but SWIG needs it. 62 */ 63 #ifndef SWIG 64 # define PJSUA2_THROW(x) 65 #else 66 # define PJSUA2_THROW(x) throw(x) 67 #endif 68 69 /** 70 * @} PJSUA2_CFG 71 */ 72 73 #endif /* __PJSUA2_CONFIG_HPP__ */ 74