MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_event

Function get_event

modules/freeswitch/fs_api.c:471–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471struct fs_event *get_event(fs_evs *sock, const str *name)
472{
473 struct list_head *_;
474 struct fs_event *event;
475
476 list_for_each(_, &sock->events) {
477 event = list_entry(_, struct fs_event, list);
478 if (str_strcmp(&event->name, name) == 0)
479 return event;
480 }
481
482 return NULL;
483}
484
485int evs_sub(fs_evs *sock, const str *tag, const str_list *name,
486 ipc_handler_type ipc_type)

Callers 3

evs_subFunction · 0.70
evs_unsubFunction · 0.70
fs_raise_eventFunction · 0.70

Calls 1

list_entryClass · 0.50

Tested by

no test coverage detected