libasteriskpj.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. ASTERISK_REGISTER_FILE()
  31. #ifdef HAVE_PJPROJECT
  32. #include <pjlib.h>
  33. #endif
  34. #include "asterisk/options.h"
  35. #include "asterisk/_private.h" /* ast_pj_init() */
  36. /*!
  37. * \internal
  38. * \brief Initialize static pjproject implementation
  39. */
  40. int ast_pj_init(void)
  41. {
  42. #ifdef HAVE_PJPROJECT_BUNDLED
  43. AST_PJPROJECT_INIT_LOG_LEVEL();
  44. pj_init();
  45. #endif
  46. return 0;
  47. }