From 2c61fb1d1ce85fe400a8668e85fc0da42813a45a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 23 Dec 2022 22:53:07 +0000 Subject: Refactor libs6auto, add s6-instance-maker (untested) Signed-off-by: Laurent Bercot --- src/include/s6/auto.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/s6/auto.h b/src/include/s6/auto.h index b8faff6..cab4b80 100644 --- a/src/include/s6/auto.h +++ b/src/include/s6/auto.h @@ -4,8 +4,18 @@ #define S6_AUTO_H #include +#include #include -int s6_auto_write_logrun (char const *, char const *, char const *, unsigned int, unsigned int, uint64_t, uint64_t, stralloc *) ; +typedef int s6_buffer_writer_func (buffer *, void *) ; +typedef s6_buffer_writer_func *s6_buffer_writer_func_ref ; + +extern int s6_auto_write_logrun (char const *, char const *, char const *, unsigned int, unsigned int, uint64_t, uint64_t, char const *) ; +extern int s6_auto_write_logrun_tmp (char const *, char const *, char const *, unsigned int, unsigned int, uint64_t, uint64_t, char const *, stralloc *) ; + +extern void s6_auto_write_logger (char const *, char const *, char const *, unsigned int, unsigned int, uint64_t, uint64_t, char const *, char const *, char const *) ; +extern void s6_auto_write_logger_tmp (char const *, char const *, char const *, unsigned int, unsigned int, uint64_t, uint64_t, char const *, char const *, char const *, stralloc *sa) ; + +extern void s6_auto_write_service (char const *, unsigned int, s6_buffer_writer_func_ref, void *, char const *) ; #endif -- cgit v1.2.3