aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-08 23:11:23 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-08 23:11:23 +0000
commita596e54d5bdbae3d130ab883fea07c02c5d52fdb (patch)
treea266eae42a3e68bdb0e012a81b5311264ddc92f8 /include
parentce4286ad28d6ba0a525ffd1581706cd34e631b96 (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: http://svn.digium.com/svn/asterisk/trunk@223016 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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 */