| 182 | |
| 183 | |
| 184 | inline static int parse_store_bavp(str *s, pv_spec_t *bavp) |
| 185 | { |
| 186 | s->len = strlen(s->s); |
| 187 | if (pv_parse_spec(s, bavp)==NULL) { |
| 188 | LM_ERR("malformed bavp definition %s\n", s->s); |
| 189 | return -1; |
| 190 | } |
| 191 | /* check if there is a bavp type */ |
| 192 | if (bavp->type != (pv_type_t)(903 + PVT_EXTRA)) { |
| 193 | LM_ERR("store parameter must be an bavp\n"); |
| 194 | return -1; |
| 195 | } |
| 196 | return 0; |
| 197 | |
| 198 | } |
| 199 | |
| 200 | |
| 201 | static int mod_init(void) |
no test coverage detected