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

Function register_trans_mod

transformations.c:128–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128int register_trans_mod(const char *mod_name, const trans_export_t *tr_exports)
129{
130 int i;
131
132 if (!tr_exports)
133 return 0;
134
135 for (i = 0; tr_exports[i].name.s; i++)
136 if (tr_add_extra(&tr_exports[i]) < 0) {
137 LM_ERR("failed to register transformation class <%.*s> for module %s\n",
138 tr_exports[i].name.len, tr_exports[i].name.s, mod_name);
139 return -1;
140 }
141
142 return 0;
143}
144
145void tr_free_extra_list(void)
146{

Callers 1

register_moduleFunction · 0.85

Calls 1

tr_add_extraFunction · 0.85

Tested by

no test coverage detected