summaryrefslogtreecommitdiff
path: root/src/server/deps.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-07-21 13:16:39 +0000
committerLaurent Bercot <ska@appnovation.com>2021-07-21 13:16:39 +0000
commit53d7f0de3feeb8ad93bb8c319c3f0f314c7d31cf (patch)
treeba85733fc50c6f1ee56261cbd33328e4c78af435 /src/server/deps.h
parent89a440efc603e6d6c7fa85b01a5a904baff5cd26 (diff)
downloads6-rc-53d7f0de3feeb8ad93bb8c319c3f0f314c7d31cf.tar.xz
New id/typenum mapping, monitor filter, cdb in db_load, etc.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/server/deps.h')
-rw-r--r--src/server/deps.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/server/deps.h b/src/server/deps.h
new file mode 100644
index 0000000..f8321dd
--- /dev/null
+++ b/src/server/deps.h
@@ -0,0 +1,19 @@
+/* ISC license. */
+
+#ifndef S6RCD_DEPS_H
+#define S6RCD_DEPS_H
+
+#include <stdint.h>
+
+#include "db.h"
+
+
+ /* Dependencies */
+
+#define deptype_passive(dt) ((dt) & 0x01u)
+#define deptype_soft(dt) ((dt) & 0x02u)
+#define deptype_loose(dt) ((dt) & 0x04u)
+
+extern int deps_fulfilled (s6rc_db_t const *, mstate_t const *, s6rc_id_t, char const *, int) ;
+
+#endif