_private.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*
  2. * Prototypes for public functions only of internal interest,
  3. * normally not used by modules.
  4. * What goes here are typically *_init() routines.
  5. */
  6. /*! \file
  7. *
  8. * \brief
  9. * Prototypes for public functions only of internal interest,
  10. *
  11. */
  12. #ifndef _ASTERISK__PRIVATE_H
  13. #define _ASTERISK__PRIVATE_H
  14. /* Load settings from asterisk.conf, provided by options.c */
  15. void load_asterisk_conf(void);
  16. void set_asterisk_conf_path(const char *path);
  17. void set_socket_path(const char *path);
  18. int load_modules(unsigned int); /*!< Provided by loader.c */
  19. int modules_shutdown(void); /*!< Provided by loader.c */
  20. int load_pbx(void); /*!< Provided by pbx.c */
  21. int load_pbx_builtins(void); /*!< Provided by pbx_builtins.c */
  22. int load_pbx_functions_cli(void); /*!< Provided by pbx_functions.c */
  23. int load_pbx_variables(void); /*!< Provided by pbx_variables.c */
  24. int load_pbx_switch(void); /*!< Provided by pbx_switch.c */
  25. int load_pbx_app(void); /*!< Provided by pbx_app.c */
  26. int load_pbx_hangup_handler(void); /*!< Provided by pbx_hangup_handler.c */
  27. int init_logger(void); /*!< Provided by logger.c */
  28. void close_logger(void); /*!< Provided by logger.c */
  29. void logger_queue_start(void); /*!< Provided by logger.c */
  30. void clean_time_zones(void); /*!< Provided by localtime.c */
  31. int ast_term_init(void); /*!< Provided by term.c */
  32. int astdb_init(void); /*!< Provided by db.c */
  33. int ast_channels_init(void); /*!< Provided by channel.c */
  34. void ast_builtins_init(void); /*!< Provided by cli.c */
  35. int ast_cli_perms_init(int reload); /*!< Provided by cli.c */
  36. int dnsmgr_init(void); /*!< Provided by dnsmgr.c */
  37. void dnsmgr_start_refresh(void); /*!< Provided by dnsmgr.c */
  38. int dnsmgr_reload(void); /*!< Provided by dnsmgr.c */
  39. void threadstorage_init(void); /*!< Provided by threadstorage.c */
  40. int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */
  41. int astobj2_init(void); /*!< Provided by astobj2.c */
  42. int ast_named_locks_init(void); /*!< Provided by named_locks.c */
  43. int ast_file_init(void); /*!< Provided by file.c */
  44. int ast_features_init(void); /*!< Provided by features.c */
  45. void ast_autoservice_init(void); /*!< Provided by autoservice.c */
  46. int ast_data_init(void); /*!< Provided by data.c */
  47. int ast_http_init(void); /*!< Provided by http.c */
  48. int ast_http_reload(void); /*!< Provided by http.c */
  49. int ast_tps_init(void); /*!< Provided by taskprocessor.c */
  50. int ast_timing_init(void); /*!< Provided by timing.c */
  51. int ast_indications_init(void); /*!< Provided by indications.c */
  52. int ast_indications_reload(void);/*!< Provided by indications.c */
  53. void ast_stun_init(void); /*!< Provided by stun.c */
  54. int ast_cel_engine_init(void); /*!< Provided by cel.c */
  55. int ast_cel_engine_reload(void); /*!< Provided by cel.c */
  56. int ast_ssl_init(void); /*!< Provided by ssl.c */
  57. int ast_pj_init(void); /*!< Provided by libasteriskpj.c */
  58. int ast_test_init(void); /*!< Provided by test.c */
  59. int ast_msg_init(void); /*!< Provided by message.c */
  60. void ast_msg_shutdown(void); /*!< Provided by message.c */
  61. int aco_init(void); /*!< Provided by config_options.c */
  62. /*!
  63. * \brief Initialize the bridging system.
  64. * \since 12.0.0
  65. *
  66. * \retval 0 on success.
  67. * \retval -1 on error.
  68. */
  69. int ast_bridging_init(void);
  70. /*!
  71. * \brief Initialize the local proxy channel.
  72. * \since 12.0.0
  73. *
  74. * \retval 0 on success.
  75. * \retval -1 on error.
  76. */
  77. int ast_local_init(void);
  78. /*!
  79. * \brief Process reload requests received during startup.
  80. *
  81. * This function requests that the loader execute the pending reload requests
  82. * that were queued during server startup.
  83. *
  84. * \note This function will do nothing if the server has not completely started
  85. * up. Once called, the reload queue is emptied, and further invocations
  86. * will have no affect.
  87. */
  88. void ast_process_pending_reloads(void);
  89. /*! \brief Load XML documentation. Provided by xmldoc.c
  90. * \retval 1 on error.
  91. * \retval 0 on success.
  92. */
  93. int ast_xmldoc_load_documentation(void);
  94. /*!
  95. * \brief Reload genericplc configuration value from codecs.conf
  96. *
  97. * Implementation is in main/channel.c
  98. */
  99. int ast_plc_reload(void);
  100. /*! \brief initializes the rtp engine arrays */
  101. int ast_rtp_engine_init(void);
  102. /*!
  103. * \brief initializes the rtp engine arrays
  104. * \since 12.0.0
  105. */
  106. int ast_parking_stasis_init(void);
  107. /*! \brief initialize the sounds index */
  108. int ast_sounds_index_init(void);
  109. /*!
  110. * \brief Endpoint support initialization.
  111. * \return 0 on success.
  112. * \return Non-zero on error.
  113. */
  114. int ast_endpoint_init(void);
  115. #endif /* _ASTERISK__PRIVATE_H */