| 377 | } |
| 378 | |
| 379 | static struct mi_handler *mi_script_new_async_handler(void) |
| 380 | { |
| 381 | struct mi_script_async_hdl *async; |
| 382 | struct mi_handler *hdl = shm_malloc(sizeof *hdl + sizeof *async); |
| 383 | if (!hdl) { |
| 384 | LM_ERR("could not start async handler\n"); |
| 385 | return NULL; |
| 386 | } |
| 387 | memset(hdl, 0, sizeof *hdl); |
| 388 | async = (struct mi_script_async_hdl *)(hdl + 1); |
| 389 | hdl->handler_f = mi_script_notify_async_handler; |
| 390 | return hdl; |
| 391 | } |
| 392 | |
| 393 | static mi_response_t *mi_script_wait_async_handler(void *hdl) |
| 394 | { |
no test coverage detected