From 249112803107d6341b5eb67caf5b730d3cc14d4f Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 30 May 2023 14:52:14 -0700 Subject: til,*: pivot to til_setup_t for context paths This changes til_setup_t* from optional to required for til_module_context_t creation, while dropping the separate path parameter construction and passing throughout. --- src/til_stream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/til_stream.h') diff --git a/src/til_stream.h b/src/til_stream.h index 3f0a618..da1abdf 100644 --- a/src/til_stream.h +++ b/src/til_stream.h @@ -21,6 +21,7 @@ #include #include "til_module_context.h" +#include "til_setup.h" typedef struct til_stream_t til_stream_t; typedef struct til_stream_pipe_t til_stream_pipe_t; @@ -52,7 +53,7 @@ int til_stream_tap(til_stream_t *stream, const void *owner, const void *owner_fo /* convenience helper for use within modules */ static inline int til_stream_tap_context(til_stream_t *stream, const til_module_context_t *module_context, const void *owner_foo, const til_tap_t *tap) { - return til_stream_tap(stream, module_context, owner_foo, module_context->path, module_context->path_hash, tap); + return til_stream_tap(stream, module_context, owner_foo, module_context->setup->path, module_context->setup->path_hash, tap); } void til_stream_untap_owner(til_stream_t *stream, const void *owner); -- cgit v1.2.1