summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-19 12:10:19 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-19 12:11:09 -0700
commita39e39211f9f9745502c25338c233a54962520ea (patch)
tree5c82efaef5d00daf30545e4862a8399507a76ee5 /src
parentacdb14ebe504c0a0c361bc9bdb306fcfcebe2b8a (diff)
til_stream: drop til_stream_pipe_set_owner()
There are no users of this, it can come back if needed.
Diffstat (limited to 'src')
-rw-r--r--src/til_stream.c10
-rw-r--r--src/til_stream.h1
2 files changed, 1 insertions, 10 deletions
diff --git a/src/til_stream.c b/src/til_stream.c
index 72351ca..5b9b59c 100644
--- a/src/til_stream.c
+++ b/src/til_stream.c
@@ -248,6 +248,7 @@ int til_stream_tap(til_stream_t *stream, const void *owner, const void *owner_fo
if (pipe->driving_tap->elems == *(tap->ptr) ||
(!strcmp(pipe->driving_tap->name, tap->name) && !strcmp(pipe->parent_path, parent_path))) {
+
if (pipe->driving_tap->type != tap->type ||
pipe->driving_tap->n_elems != tap->n_elems) {
assert(0); /* I don't really want to handle such errors at runtime */
@@ -505,15 +506,6 @@ int til_stream_for_each_pipe(til_stream_t *stream, til_stream_pipe_iter_func_t p
}
-void til_stream_pipe_set_owner(til_stream_pipe_t *pipe, const void *owner, const void *owner_foo)
-{
- assert(pipe);
-
- pipe->owner = owner;
- pipe->owner_foo = owner_foo;
-}
-
-
/* NULLing out the driving_tap isn't supported, since the tap name is part of the pipe's identity,
* just set tap.inactive to indicate another tap should take over driving.
*/
diff --git a/src/til_stream.h b/src/til_stream.h
index 317fe8f..e7b92e6 100644
--- a/src/til_stream.h
+++ b/src/til_stream.h
@@ -65,7 +65,6 @@ void til_stream_untap_owner(til_stream_t *stream, const void *owner);
void til_stream_fprint_pipes(til_stream_t *stream, FILE *out);
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_t *stream, til_stream_pipe_t *pipe, const til_tap_t *driving_tap);
© All Rights Reserved