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

Function w_stat_iter_init

modules/statistics/statistics.c:821–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821static int w_stat_iter_init(struct sip_msg *msg, str *group, struct stat_iter *iter)
822{
823 module_stats *ms;
824
825 ms = get_stat_module(group);
826 if (!ms) {
827 LM_ERR("unknown group %.*s\n", group->len, group->s);
828 return -1;
829 }
830 iter->cur = ms->head;
831
832 return 1;
833}
834
835static int w_stat_iter_next(struct sip_msg *msg, pv_spec_t *key, pv_spec_t *val,
836 struct stat_iter *iter)

Callers

nothing calls this directly

Calls 1

get_stat_moduleFunction · 0.85

Tested by

no test coverage detected