summaryrefslogtreecommitdiff
path: root/src/include
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/include
parentfc91cc6cd1384a315a1f33bc83e6d6e9926fc791 (diff)
downloads6-rc-4fb4eaecb937e3eddd8804c85ce20c80cc753480.tar.xz
Some refactor + add servicedir copy functions in libs6rc
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6-rc/s6rc-servicedir.h12
-rw-r--r--src/include/s6-rc/s6rc-utils.h1
-rw-r--r--src/include/s6-rc/s6rc.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/src/include/s6-rc/s6rc-servicedir.h b/src/include/s6-rc/s6rc-servicedir.h
new file mode 100644
index 0000000..d52fddf
--- /dev/null
+++ b/src/include/s6-rc/s6rc-servicedir.h
@@ -0,0 +1,12 @@
+/* ISC license. */
+
+#ifndef S6RC_SERVICEDIR_H
+#define S6RC_SERVICEDIR_H
+
+extern int s6rc_servicedir_block (char const *) ;
+extern int s6rc_servicedir_unblock (char const *, int) ;
+extern int s6rc_servicedir_copy_offline (char const *, char const *) ;
+extern int s6rc_servicedir_copy_online (char const *, char const *) ;
+#define s6rc_servicedir_copy(src, dst, h) ((h) ? s6rc_servicedir_copy_online(src, dst) : s6rc_servicedir_copy_offline(src, dst))
+
+#endif
diff --git a/src/include/s6-rc/s6rc-utils.h b/src/include/s6-rc/s6rc-utils.h
index 992d865..c51c940 100644
--- a/src/include/s6-rc/s6rc-utils.h
+++ b/src/include/s6-rc/s6rc-utils.h
@@ -6,5 +6,6 @@
#include <s6-rc/s6rc-db.h>
extern void s6rc_graph_closure (s6rc_db_t const *, unsigned char *, unsigned int, int) ;
+extern int s6rc_read_uint (char const *, unsigned int *) ;
#endif
diff --git a/src/include/s6-rc/s6rc.h b/src/include/s6-rc/s6rc.h
index 098f38b..87a87ef 100644
--- a/src/include/s6-rc/s6rc.h
+++ b/src/include/s6-rc/s6rc.h
@@ -6,5 +6,6 @@
#include <s6-rc/s6rc-constants.h>
#include <s6-rc/s6rc-db.h>
#include <s6-rc/s6rc-utils.h>
+#include <s6-rc/s6rc-servicedir.h>
#endif