summaryrefslogtreecommitdiff
path: root/include/asterisk/calendar.h
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2009-10-08 23:11:23 +0000
committerTerry Wilson <twilson@digium.com>2009-10-08 23:11:23 +0000
commita75ba8d1a9ed3a025416001fa2098ac7cfa613e8 (patch)
treea266eae42a3e68bdb0e012a81b5311264ddc92f8 /include/asterisk/calendar.h
parent799e9962b63f0ce96099d51736bea87c99821ccd (diff)
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
Diffstat (limited to 'include/asterisk/calendar.h')
-rw-r--r--include/asterisk/calendar.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/asterisk/calendar.h b/include/asterisk/calendar.h
index dd14f963a..29c67de17 100644
--- a/include/asterisk/calendar.h
+++ b/include/asterisk/calendar.h
@@ -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 */