| 265 | } |
| 266 | |
| 267 | int evi_probe_event(event_id_t id) |
| 268 | { |
| 269 | if (id < 0 || id >= events_no) { |
| 270 | LM_ERR("invalid event %d\n", id); |
| 271 | return -1; |
| 272 | } |
| 273 | |
| 274 | /* check for subscribers */ |
| 275 | if (!events[id].subscribers) |
| 276 | return 0; |
| 277 | |
| 278 | /* returns the number of transport module loaded */ |
| 279 | return get_trans_mod_no(); |
| 280 | } |
| 281 | |
| 282 | |
| 283 | /* returns the id of an event */ |
no test coverage detected