summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc-servicedir-internal.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-25 23:14:00 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-25 23:14:00 +0000
commit4fb4eaecb937e3eddd8804c85ce20c80cc753480 (patch)
treea0f530151558a3c721f0aaf9b0e4e28f183de8c0 /src/libs6rc/s6rc-servicedir-internal.h
parentfc91cc6cd1384a315a1f33bc83e6d6e9926fc791 (diff)
downloads6-rc-4fb4eaecb937e3eddd8804c85ce20c80cc753480.tar.xz
Some refactor + add servicedir copy functions in libs6rc
Diffstat (limited to 'src/libs6rc/s6rc-servicedir-internal.h')
-rw-r--r--src/libs6rc/s6rc-servicedir-internal.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/libs6rc/s6rc-servicedir-internal.h b/src/libs6rc/s6rc-servicedir-internal.h
new file mode 100644
index 0000000..fe05a40
--- /dev/null
+++ b/src/libs6rc/s6rc-servicedir-internal.h
@@ -0,0 +1,32 @@
+/* ISC license. */
+
+#ifndef S6RC_SERVICEDIR_INTERNAL_H
+#define S6RC_SERVICEDIR_INTERNAL_H
+
+typedef enum s6rc_filetype_e s6rc_filetype_t, *s6rc_filetype_t_ref ;
+enum s6rc_filetype_e
+{
+ FILETYPE_NORMAL,
+ FILETYPE_EMPTY,
+ FILETYPE_UINT,
+ FILETYPE_DIR
+} ;
+
+#define SVFILE_EXECUTABLE 0x01
+#define SVFILE_MANDATORY 0x02
+#define SVFILE_ATOMIC 0x04
+
+typedef struct s6rc_servicedir_desc_s s6rc_servicedir_desc_t, *s6rc_servicedir_desc_t_ref ;
+struct s6rc_servicedir_desc_s
+{
+ char const *name ;
+ s6rc_filetype_t type ;
+ unsigned char options ;
+} ;
+
+extern s6rc_servicedir_desc_t const *s6rc_servicedir_file_list ;
+extern unsigned int const s6rc_servicedir_file_maxlen ;
+
+extern int s6rc_servicedir_copy_one (char const *, char const *, s6rc_servicedir_desc_t const *) ;
+
+#endif