summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc-servicedir-internal.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-08-18 22:59:52 +0000
committerLaurent Bercot <ska@appnovation.com>2022-08-18 22:59:52 +0000
commitfe736e4ea581a5a05456deb50a86890b1ecfe4d1 (patch)
treedc800811dd8450c3ca9485a204b042f01c6d7139 /src/libs6rc/s6rc-servicedir-internal.h
parent21c5855ef363672f10e3f0d06a83b3a68e567b88 (diff)
downloads6-rc-fe736e4ea581a5a05456deb50a86890b1ecfe4d1.tar.xz
Change s6rc_servicedir to types defined in s6/servicedir.h
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6rc/s6rc-servicedir-internal.h')
-rw-r--r--src/libs6rc/s6rc-servicedir-internal.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/libs6rc/s6rc-servicedir-internal.h b/src/libs6rc/s6rc-servicedir-internal.h
index a4af0b9..0c9c4d9 100644
--- a/src/libs6rc/s6rc-servicedir-internal.h
+++ b/src/libs6rc/s6rc-servicedir-internal.h
@@ -3,32 +3,9 @@
#ifndef S6RC_SERVICEDIR_INTERNAL_H
#define S6RC_SERVICEDIR_INTERNAL_H
-#include <sys/types.h>
+#include <s6/servicedir.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 size_t const s6rc_servicedir_file_maxlen ;
-
-extern int s6rc_servicedir_copy_one (char const *, char const *, s6rc_servicedir_desc_t const *) ;
+extern int s6rc_servicedir_copy_one (char const *, char const *, s6_servicedir_desc const *) ;
+extern s6_servicedir_desc const *const s6rc_servicedir_file_list ;
#endif