diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-05 11:14:51 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-05 11:17:51 -0700 |
commit | 287ddfc25ee60955e2bfc8ba8193309747639f4f (patch) | |
tree | a7e043ffa579d78c6152161da5826faf6bf79ea2 /src/libs/din | |
parent | 1a6210be32d6b96483f595e30ad3ae1ef5ebd58b (diff) |
til_builtins: add "none" builtin
Sometimes nested modules are optional, in those cases I've
usually been using the "none" module name to indicate this and
the ad-hoc setup stuff can easily bypass module setup on that.
This commit is a step towards having a "none" builtin that
provides a til_module_t.setup() which succeeds but only produces
a NULL res_setup when asked to finalize.
So if callers just handle a successful finalize case that writes
NULL at res_setup equivalent to "disabled", this all Just Works.
Currently that's not an expected thing, but future commits will
bring everything else on the same page.
For callers who want to require the module and not offer "none",
they can just put "none" in the explicit exclusions list passed
to til_module_setup_full().
Diffstat (limited to 'src/libs/din')
0 files changed, 0 insertions, 0 deletions