Remove global variable that makes dlopen unhappy

This isn't the best way to do this, but it is the easiest. There are some
limitations that are going to need to be addressed at some point with reloads
and when I (or someone else) work on that, then the API can be updated to
handle passing the private config data that the calendar tech modules need in
a better way as well.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@223016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2009-10-08 23:11:23 +00:00
parent 799e9962b6
commit a75ba8d1a9
5 changed files with 71 additions and 16 deletions

View File

@@ -60,8 +60,6 @@
* to unregister that module's calendar type (usually done in module_unload())
*/
extern struct ast_config *ast_calendar_config;
struct ast_calendar;
struct ast_calendar_event;
@@ -184,4 +182,16 @@ struct ast_calendar_event *ast_calendar_unref_event(struct ast_calendar_event *e
*/
void ast_calendar_clear_events(struct ast_calendar *cal);
/*! \brief Grab and lock pointer to the calendar config (read only)
*
* \note ast_calendar_config_release must be called when finished with the pointer
*
* \return the parsed calendar config
*/
const struct ast_config *ast_calendar_config_acquire(void);
/*! \brief Release the calendar config
*/
void ast_calendar_config_release(void);
#endif /* _ASTERISK_CALENDAR_H */