SWITCH_EVENT_DEL_SCHEDULE - Something has been unscheduled
SWITCH_EVENT_EXE_SCHEDULE - Something scheduled has been executed
SWITCH_EVENT_RE_SCHEDULE - Something scheduled has been rescheduled
+ SWITCH_EVENT_RELOADXML - XML registry has been reloaded
SWITCH_EVENT_ALL - All events at once
</pre>
SWITCH_EVENT_DEL_SCHEDULE,
SWITCH_EVENT_EXE_SCHEDULE,
SWITCH_EVENT_RE_SCHEDULE,
+ SWITCH_EVENT_RELOADXML,
SWITCH_EVENT_ALL
} switch_event_types_t;
}
switch_mutex_unlock(XML_LOCK);
- return errcnt == 0 ? switch_xml_root() : NULL;
+ if (errcnt == 0) {
+ switch_event_t *event;
+ if (switch_event_create(&event, SWITCH_EVENT_RELOADXML) == SWITCH_STATUS_SUCCESS) {
+ if (switch_event_fire(&event) != SWITCH_STATUS_SUCCESS) {
+ switch_event_destroy(&event);
+ }
+ }
+ return switch_xml_root();
+ }
+
+ return NULL;
}
SWITCH_DECLARE(switch_status_t) switch_xml_init(switch_memory_pool_t *pool, const char **err)