diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-02 11:05:54 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-02 11:06:30 -0400 |
commit | 2ca6d9d944a05ff9c31d133ca44a0cc9bc892030 (patch) | |
tree | 76d4d82a5bd3890cc12960ada94e0218d3a3b519 /include | |
parent | 48fbcc4e2a47319e8f53e0dc5104dcfcfe11cc2b (diff) | |
download | stasis-2ca6d9d944a05ff9c31d133ca44a0cc9bc892030.tar.gz |
Update README to mention template function availability
* Add EnvCtl structure
* Add runtime checks to avoid running all the way to the end only to be met with a configuration error.
* Rename GITHUB to GH
Diffstat (limited to 'include')
-rw-r--r-- | include/core.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core.h b/include/core.h index cea7a16..d065096 100644 --- a/include/core.h +++ b/include/core.h @@ -59,6 +59,11 @@ } \ } while (0) +struct EnvCtl { + unsigned flags; + const char *name[10]; +}; + struct STASIS_GLOBAL { bool verbose; //!< Enable verbose output bool always_update_base_environment; //!< Update base environment immediately after activation @@ -88,8 +93,13 @@ struct STASIS_GLOBAL { char *repo; char *url; } jfrog; + struct EnvCtl envctl[]; }; extern struct STASIS_GLOBAL globals; + +#define STASIS_ENVCTL_PASSTHRU 0 << 1 +#define STASIS_ENVCTL_REQUIRED 1 << 1 +#define STASIS_ENVCTL_REDACT 2 << 1 extern const char *VERSION; extern const char *AUTHOR; extern const char *BANNER; |