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

This commit is contained in:
Anthony Minessale
2019-02-06 16:44:39 +00:00
committed by Andrey Volk
parent dab7d83e94
commit 4926eac49d
2 changed files with 7 additions and 1 deletions

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;