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