Add shout_queuelen to expose the current length in bytes of the write queue.
To do this without having to recalculate, I had to create a queue structure to hold the linked list itself and its length. Might be worth putting a pointer to the tail here too. svn path=/icecast/trunk/libshout/; revision=8144
Showing
- examples/Makefile.am 5 additions, 1 deletionexamples/Makefile.am
- examples/example.c 3 additions, 1 deletionexamples/example.c
- examples/nonblocking.c 104 additions, 0 deletionsexamples/nonblocking.c
- include/shout/shout.h.in 5 additions, 1 deletioninclude/shout/shout.h.in
- src/shout.c 33 additions, 23 deletionssrc/shout.c
- src/shout_private.h 7 additions, 2 deletionssrc/shout_private.h
Loading
Please register or sign in to comment