summaryrefslogtreecommitdiff
path: root/src/til.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-05 11:11:14 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-05 11:11:14 -0700
commit1a6210be32d6b96483f595e30ad3ae1ef5ebd58b (patch)
tree4deff90d551b73ce61b79f0ed57b5e74082b038d /src/til.h
parentde6297c0c809d742d6d6c105bbbcb31187c64a14 (diff)
til: make builtins first-class modules w/new flag
Also move builtins to a separate listing while at it For now this results in the builtins showing up in the modules list alongside the actual rendering modules. Future work must refine this UX, maybe by adding some metadata to the spec.values for categorizing/prioritizing what's shown always vs. what's present but hidden without asking to be shown hidden stuff or whatever. Just consolidating some junk and working towards every nested module setup going through the same machinery, and always being able to access the builtins.
Diffstat (limited to 'src/til.h')
-rw-r--r--src/til.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/til.h b/src/til.h
index da62456..1b39c06 100644
--- a/src/til.h
+++ b/src/til.h
@@ -23,6 +23,7 @@ typedef struct til_stream_t til_stream_t;
#define TIL_MODULE_OVERLAYABLE 1u /* module is appropriate for overlay use */
#define TIL_MODULE_HERMETIC 2u /* module doesn't work readily with other modules / requires manual settings */
#define TIL_MODULE_EXPERIMENTAL 4u /* module is buggy / unfinished */
+#define TIL_MODULE_BUILTIN 8u /* module is implements "built-in" libtil functionality not intended to be interesting by itself */
struct til_module_t {
til_module_context_t * (*create_context)(const til_module_t *module, til_stream_t *stream, unsigned seed, unsigned ticks, unsigned n_cpus, til_setup_t *setup);
© All Rights Reserved