diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6-rc/s6rc-servicedir.h | 12 | ||||
-rw-r--r-- | src/include/s6-rc/s6rc-utils.h | 1 | ||||
-rw-r--r-- | src/include/s6-rc/s6rc.h | 1 |
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 |