| 454 | } |
| 455 | |
| 456 | int get_mi_string_param(const mi_params_t *params, char *name, |
| 457 | char **value, int *value_len) |
| 458 | { |
| 459 | switch (try_get_mi_string_param(params, name, value, value_len)) |
| 460 | { |
| 461 | case MI_PARAM_ERR_MISSING: |
| 462 | LM_ERR("Parameter: %s not found\n", name); |
| 463 | break; |
| 464 | case MI_PARAM_ERR_BAD_TYPE: |
| 465 | LM_ERR("Bad data type for parameter: %s\n", name); |
| 466 | break; |
| 467 | case 0: |
| 468 | return 0; |
| 469 | } |
| 470 | return -1; |
| 471 | } |
| 472 | |
| 473 | |
| 474 | int get_mi_bool_like_param(const mi_params_t *params, char *name, |
no test coverage detected