diff options
Diffstat (limited to 'src/til_module_context.h')
-rw-r--r-- | src/til_module_context.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/til_module_context.h b/src/til_module_context.h index 7a5fca5..cbbfb8e 100644 --- a/src/til_module_context.h +++ b/src/til_module_context.h @@ -1,8 +1,6 @@ #ifndef _TIL_MODULE_CONTEXT_H #define _TIL_MODULE_CONTEXT_H -#include <stdint.h> - typedef struct til_module_context_t til_module_context_t; typedef struct til_module_t til_module_t; typedef struct til_setup_t til_setup_t; @@ -14,12 +12,12 @@ struct til_module_context_t { unsigned seed; unsigned ticks; unsigned n_cpus; - char *path; /* for locating this instance of the module, NOT a file path */ - uint32_t path_hash; - til_setup_t *setup; /* optional baked setup this context was made from (reffed by context when present) */ + til_setup_t *setup; /* Baked setup this context was made from, reffed by context. + * Always present as it provides the path, which is generally derived from a settings instance. + */ }; -void * til_module_context_new(const til_module_t *module, size_t size, til_stream_t *stream, unsigned seed, unsigned ticks, unsigned n_cpus, char *path, til_setup_t *setup); +void * til_module_context_new(const til_module_t *module, size_t size, til_stream_t *stream, unsigned seed, unsigned ticks, unsigned n_cpus, til_setup_t *setup); void * til_module_context_free(til_module_context_t *module_context); #endif |