| 5324 | } |
| 5325 | |
| 5326 | static int rtpengine_api_copy_deserialize(void **_ctx, bin_packet_t *packet) |
| 5327 | { |
| 5328 | str to_tag; |
| 5329 | if (bin_pop_str(packet, &to_tag) < 0 || to_tag.len == 0) |
| 5330 | return -1; |
| 5331 | |
| 5332 | *_ctx = rtpengine_new_subs(&to_tag); |
| 5333 | if (*_ctx == NULL) |
| 5334 | return -1; |
| 5335 | else |
| 5336 | return 1; |
| 5337 | } |
| 5338 | |
| 5339 | static void rtpengine_api_copy_release(void **ctx) |
| 5340 | { |
nothing calls this directly
no test coverage detected