diff options
author | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-13 19:57:49 -0300 |
---|---|---|
committer | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-13 19:57:49 -0300 |
commit | 4a4e956c26d2f73534e504c36e2ca6a2617644b8 (patch) | |
tree | 72bc232f93514b3206da986e4d4aad1e3024e7d8 /src/itc.h | |
parent | 37e2f4899b5d3e594c1080e25c04b40bc29d53a4 (diff) | |
download | libtuberia-4a4e956c26d2f73534e504c36e2ca6a2617644b8.tar.gz |
adding tests for the main library
Diffstat (limited to 'src/itc.h')
-rw-r--r-- | src/itc.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,5 +1,5 @@ -#ifndef __LIBTUBERIA_ITC_H__ -#define __LIBTUBERIA_ITC_H__ +#ifndef LIBTUBERIA_ITC_H__ +#define LIBTUBERIA_ITC_H__ typedef struct itc itc; typedef void (*itc_free_element)(void *element); @@ -9,7 +9,10 @@ void itc_free(itc **ctx, itc_free_element free_element); void *itc_retrive(itc *ctx, int timeout_ms); int itc_inject(itc *ctx, int timeout_ms, void *element); -void itc_flush(itc *ctx); -void itc_drop(itc *ctx, itc_free_element free_element); +void itc_wait_empty(itc *ctx); +void itc_discard_all(itc *ctx, itc_free_element free_element); -#endif //__LIBTUBERIA_ITC_H__ +int itc_get_queued(itc *ctx); +int itc_get_slots(itc *ctx); + +#endif //LIBTUBERIA_ITC_H__ |