summaryrefslogtreecommitdiff
path: root/src/til_module_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/til_module_context.h')
-rw-r--r--src/til_module_context.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/til_module_context.h b/src/til_module_context.h
new file mode 100644
index 0000000..3751b84
--- /dev/null
+++ b/src/til_module_context.h
@@ -0,0 +1,16 @@
+#ifndef _TIL_MODULE_CONTEXT_H
+#define _TIL_MODULE_CONTEXT_H
+
+typedef struct til_module_context_t til_module_context_t;
+typedef struct til_module_t til_module_t;
+
+struct til_module_context_t {
+ const til_module_t *module;
+ unsigned seed;
+ unsigned n_cpus;
+};
+
+void * til_module_context_new(size_t size, unsigned seed, unsigned n_cpus);
+void * til_module_context_free(til_module_context_t *module_context);
+
+#endif
© All Rights Reserved