From 331d019eeb1104d4baa6af1d11ad228793b8d97f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 14 Jun 2025 13:32:49 +0000 Subject: Set up configurable policy infrastructure Signed-off-by: Laurent Bercot --- src/s6/s6-internal.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/s6/s6-internal.h') diff --git a/src/s6/s6-internal.h b/src/s6/s6-internal.h index 6616c87..34a9c16 100644 --- a/src/s6/s6-internal.h +++ b/src/s6/s6-internal.h @@ -8,8 +8,10 @@ #include #include -#include +#include +#include +#include "s6f.h" /* util */ @@ -53,18 +55,24 @@ extern int service (char const *const *) ; struct global_s { unsigned int verbosity ; - char const *scandir ; - char const *livedir ; - char const *repodir ; + s6f_confdirs dirs ; + stralloc userstorage ; + uint8_t isuser : 1 ; uint8_t istty : 1 ; uint8_t color : 1 ; } ; #define GLOBAL_ZERO \ { \ .verbosity = 1, \ - .scandir = S6_FRONTEND_SCANDIR, \ - .livedir = S6_FRONTEND_LIVEDIR, \ - .repodir = S6_FRONTEND_REPODIR, \ + .dirs = \ + { \ + .scan = S6_FRONTEND_SCANDIR, \ + .live = S6_FRONTEND_LIVEDIR, \ + .repo = S6_FRONTEND_REPODIR, \ + .boot = S6_FRONTEND_BOOTDIR, \ + }, \ + .userstorage = STRALLOC_ZERO, \ + .isuser = 0, \ .istty = 0, \ .color = 0 \ } -- cgit v1.3.1