summaryrefslogtreecommitdiff
path: root/src/til_stream.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-08 20:15:45 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-08 20:15:45 -0700
commitf5b05390f057b0c7c1a5f99be354692445678e55 (patch)
treef54842b40e5943d9f87d555093cee0671c7f3a73 /src/til_stream.h
parent7b09ed69ad9f454e702b750d529a8dda95de0aec (diff)
til_stream: name pipe-oriented stream api as such
When all the stream encapsulated were pipes/taps, naming was less precise. With module contexts in the process of being registered in the stream, there's a need to distinguish things more. This is a largely mechanical naming change...
Diffstat (limited to 'src/til_stream.h')
-rw-r--r--src/til_stream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/til_stream.h b/src/til_stream.h
index da1abdf..1fb709f 100644
--- a/src/til_stream.h
+++ b/src/til_stream.h
@@ -31,7 +31,7 @@ typedef struct til_tap_t til_tap_t;
* things can be done to it (like changing the ownership?)
* return 0 to stop iterating, 1 to continue, -errno on error
*/
-typedef int (til_stream_iter_func_t)(void *context, til_stream_pipe_t *pipe, const void *owner, const void *owner_foo, const til_tap_t *driving_tap);
+typedef int (til_stream_pipe_iter_func_t)(void *context, til_stream_pipe_t *pipe, const void *owner, const void *owner_foo, const til_tap_t *driving_tap);
/* this provides a way to intercept pipe creations/deletions when they occur,
* allowing another module to snipe ownership when they appear and cleanup
@@ -57,9 +57,9 @@ static inline int til_stream_tap_context(til_stream_t *stream, const til_module_
}
void til_stream_untap_owner(til_stream_t *stream, const void *owner);
-void til_stream_fprint(til_stream_t *stream, FILE *out);
+void til_stream_fprint_pipes(til_stream_t *stream, FILE *out);
-int til_stream_for_each_pipe(til_stream_t *stream, til_stream_iter_func_t pipe_cb, void *cb_arg);
+int til_stream_for_each_pipe(til_stream_t *stream, til_stream_pipe_iter_func_t pipe_cb, void *cb_arg);
void til_stream_pipe_set_owner(til_stream_pipe_t *pipe, const void *owner, const void *owner_foo);
void til_stream_pipe_set_driving_tap(til_stream_pipe_t *pipe, const til_tap_t *driving_tap);
© All Rights Reserved