aboutsummaryrefslogtreecommitdiffstats
path: root/src/include-local/s6f.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-06-14 13:32:49 +0000
committerLaurent Bercot <ska@appnovation.com>2025-06-14 13:32:49 +0000
commit331d019eeb1104d4baa6af1d11ad228793b8d97f (patch)
tree7a9c8142d587844f23a1bde3432a4f7d57ecd2df /src/include-local/s6f.h
parent7d717a323bbc1558ee7710b3598c681388748652 (diff)
downloads6-frontend-331d019eeb1104d4baa6af1d11ad228793b8d97f.tar.gz
Set up configurable policy infrastructure
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include-local/s6f.h')
-rw-r--r--src/include-local/s6f.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include-local/s6f.h b/src/include-local/s6f.h
new file mode 100644
index 0000000..4879536
--- /dev/null
+++ b/src/include-local/s6f.h
@@ -0,0 +1,19 @@
+/* ISC license. */
+
+#ifndef S6F_H
+#define S6F_H
+
+#include <skalibs/stralloc.h>
+
+typedef struct s6f_confdirs_s s6f_confdirs, *s6f_confdirs_ref ;
+struct s6f_confdirs_s
+{
+ char const *scan ; /* $XDG_RUNTIME_DIR/service */
+ char const *live ; /* $XDG_RUNTIME_DIR/s6-rc */
+ char const *repo ; /* $XDG_DATA_HOME/s6-frontend/repository */
+ char const *boot ; /* $XDG_CONFIG_HOME/s6-rc */
+} ;
+
+extern void s6f_user_get_confdirs (s6f_confdirs *, stralloc *) ;
+
+#endif