config.hpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. * @file pjsua2/config.hpp
  22. * @brief PJSUA2 Base Agent Operation
  23. */
  24. #include <pjsua-lib/pjsua.h>
  25. /**
  26. * @defgroup PJSUA2_CFG_Compile Compile time settings
  27. * @ingroup PJSUA2_DS
  28. * @{
  29. */
  30. /**
  31. * Specify if the Error exception info should contain operation and source
  32. * file information.
  33. */
  34. #ifndef PJSUA2_ERROR_HAS_EXTRA_INFO
  35. # define PJSUA2_ERROR_HAS_EXTRA_INFO 1
  36. #endif
  37. /**
  38. * Maximum buffer length to print SDP content for SdpSession. Set this to 0
  39. * if the printed SDP is not needed.
  40. */
  41. #ifndef PJSUA2_MAX_SDP_BUF_LEN
  42. # define PJSUA2_MAX_SDP_BUF_LEN 1024
  43. #endif
  44. /**
  45. * Ticket #2189 described some lists of objects which is not thread safe.
  46. * The ticket deprecated some APIs which uses those lists and introduce new one
  47. * to replace them. This settings will disable the deprecated API all together.
  48. * See also https://github.com/pjsip/pjproject/issues/2232
  49. */
  50. #ifndef DEPRECATED_FOR_TICKET_2232
  51. # define DEPRECATED_FOR_TICKET_2232 1
  52. #endif
  53. /**
  54. * C++11 deprecated dynamic exception specification, but SWIG needs it.
  55. */
  56. #ifndef SWIG
  57. # define PJSUA2_THROW(x)
  58. #else
  59. # define PJSUA2_THROW(x) throw(x)
  60. #endif
  61. /**
  62. * @} PJSUA2_CFG
  63. */
  64. #endif /* __PJSUA2_CONFIG_HPP__ */