| 662 | } |
| 663 | |
| 664 | static int fixup_event_name(void** param) |
| 665 | { |
| 666 | str *s = (str*)*param; |
| 667 | event_id_t ev_id; |
| 668 | |
| 669 | ev_id = evi_get_id(s); |
| 670 | if (ev_id == EVI_ERROR) { |
| 671 | ev_id = evi_publish_event(*s); |
| 672 | if (ev_id == EVI_ERROR) { |
| 673 | LM_ERR("cannot subscribe event\n"); |
| 674 | return E_UNSPEC; |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | *param = (void*)(long)ev_id; |
| 679 | return 0; |
| 680 | } |
| 681 | |
| 682 | static int fixup_event_name_subs(void** param) |
| 683 | { |
nothing calls this directly
no test coverage detected