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

Function register_pvars_mod

pvar.c:5921–5937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5919}
5920
5921int register_pvars_mod(const char *mod_name, const pv_export_t *items)
5922{
5923 int ret;
5924 int i;
5925
5926 if (items==0)
5927 return 0;
5928
5929 for ( i=0 ; items[i].name.s ; i++ ) {
5930 ret = pv_add_extra(&items[i]);
5931 if (ret!=0) {
5932 LM_ERR("failed to register pseudo-variable <%.*s> for module %s\n",
5933 items[i].name.len, items[i].name.s, mod_name);
5934 }
5935 }
5936 return 0;
5937}
5938
5939/**
5940 *

Callers 1

register_moduleFunction · 0.85

Calls 1

pv_add_extraFunction · 0.85

Tested by

no test coverage detected