aboutsummaryrefslogtreecommitdiff
path: root/src/tuberia.h
diff options
context:
space:
mode:
authorNicolas Dato <nicolas.dato@gmail.com>2025-07-05 19:53:02 -0300
committerNicolas Dato <nicolas.dato@gmail.com>2025-07-05 19:53:02 -0300
commit37feaa48d5b7c7e1773acf364d7e28bfa46bbd78 (patch)
treef105eb52670246987b932200afa6fd2d992e5d00 /src/tuberia.h
parent4c15b4e3459311f8d458e0e9c031a473efe5f0b8 (diff)
downloadlibtuberia-37feaa48d5b7c7e1773acf364d7e28bfa46bbd78.tar.gz
adding tube_inject_at() to inject elements at any stage, and changing tube_wait_empty() for tube_stop_and_wait_empty()
Diffstat (limited to 'src/tuberia.h')
-rw-r--r--src/tuberia.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tuberia.h b/src/tuberia.h
index 9b3c56c..f83ea6f 100644
--- a/src/tuberia.h
+++ b/src/tuberia.h
@@ -23,8 +23,9 @@ int tube_stop(tube *ctx);
void tube_free(tube **ctx);
int tube_inject(tube *ctx, int timeout_ms, void *element);
+int tube_inject_at(tube *ctx, int stage, int timeout_ms, void *element);
void *tube_retrive(tube *ctx, int timeout_ms);
-void tube_wait_empty(tube *ctx);
+void tube_stop_and_wait_empty(tube *ctx);
void tube_discard_all(tube *ctx);
int tube_get_queued(const tube *ctx, int stage);