summaryrefslogtreecommitdiff
path: root/src/server/service.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-07-14 01:09:14 +0000
committerLaurent Bercot <ska@appnovation.com>2021-07-14 01:09:14 +0000
commit89a440efc603e6d6c7fa85b01a5a904baff5cd26 (patch)
tree0ae19265897cb400f0941e64000839250e53c571 /src/server/service.c
parent0fda45c68b6a257ee26e9f9813cce8962f94e2fd (diff)
downloads6-rc-89a440efc603e6d6c7fa85b01a5a904baff5cd26.tar.xz
More db/event/state changes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/server/service.c')
-rw-r--r--src/server/service.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/server/service.c b/src/server/service.c
deleted file mode 100644
index b5d06f4..0000000
--- a/src/server/service.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* ISC license. */
-
-#include "service.h"
-
-common_t const *service_common (db_t const *db, stype_t stype, uint32_t i)
-{
- if (stype >= STYPE_PHAIL) return 0 ;
- if (i >= db->n[stype]) return 0 ;
- switch (stype)
- {
- case STYPE_LONGRUN : return &db->longruns[i].common ;
- case STYPE_ONESHOT : return &db->oneshots[i].common ;
- case STYPE_EXTERNAL : return &db->externals[i].common ;
- case STYPE_BUNDLE : return &db->bundles[i].common ;
- case STYPE_VIRTUAL : return &db->virtuals[i].common ;
- default : return 0 ;
- }
-}