libasteriskpj.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2009-2012, Digium, Inc.
  5. * Copyright (C) 2015, Fairview 5 Engineering, LLC
  6. *
  7. * Russell Bryant <russell@digium.com>
  8. * George Joseph <george.joseph@fairview5.com>
  9. *
  10. * See http://www.asterisk.org for more information about
  11. * the Asterisk project. Please do not directly contact
  12. * any of the maintainers of this project for assistance;
  13. * the project provides a web site, mailing lists and IRC
  14. * channels for your use.
  15. *
  16. * This program is free software, distributed under the terms of
  17. * the GNU General Public License Version 2. See the LICENSE file
  18. * at the top of the source tree.
  19. */
  20. /*!
  21. * \file
  22. * \brief Loader stub for static pjproject libraries
  23. *
  24. * \author George Joseph <george.joseph@fairview5.com>
  25. */
  26. /*** MODULEINFO
  27. <support_level>core</support_level>
  28. ***/
  29. #include "asterisk.h"
  30. #ifdef HAVE_PJPROJECT
  31. #include <pjlib.h>
  32. #endif
  33. #include "asterisk/options.h"
  34. #include "asterisk/_private.h" /* ast_pj_init() */
  35. /*!
  36. * \internal
  37. * \brief Initialize static pjproject implementation
  38. */
  39. int ast_pj_init(void)
  40. {
  41. #ifdef HAVE_PJPROJECT_BUNDLED
  42. AST_PJPROJECT_INIT_LOG_LEVEL();
  43. pj_init();
  44. #endif
  45. return 0;
  46. }