FS-11918: [core] add function to see frame buffer len switch_frame_buffer_size

This commit is contained in:
Anthony Minessale authored and Andrey Volk committed 2019-07-18 00:35:56 +04:00
1 parent dab7d83e94
commit 4926eac49d
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -265,6 +265,11 @@ SWITCH_DECLARE(switch_status_t) switch_frame_buffer_trypop(switch_frame_buffer_t
return switch_queue_trypop(fb->queue, ptr);
}
SWITCH_DECLARE(int) switch_frame_buffer_size(switch_frame_buffer_t *fb)
{
return switch_queue_size(fb->queue);
}
SWITCH_DECLARE(switch_status_t) switch_frame_buffer_destroy(switch_frame_buffer_t **fbP)
{
switch_frame_buffer_t *fb = *fbP;