diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/til_stream.c | 10 | ||||
-rw-r--r-- | src/til_stream.h | 1 |
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); |