summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-06-08 09:15:36 +0000
committerLaurent Bercot <ska@appnovation.com>2022-06-08 09:15:36 +0000
commit13a6d7144b1f990bc42c2b0a798c0eb9dd903720 (patch)
treeddc01d823ceab86289fca90b244a8b58d3c6b0d6 /src/include
parentb092e9d469727f6d271961c7dca7cf8925987af1 (diff)
downloads6-rc-13a6d7144b1f990bc42c2b0a798c0eb9dd903720.tar.xz
Small changes to db1.0.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6-rc/db.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/include/s6-rc/db.h b/src/include/s6-rc/db.h
index 7e1ee07..27a93eb 100644
--- a/src/include/s6-rc/db.h
+++ b/src/include/s6-rc/db.h
@@ -50,9 +50,6 @@ typedef struct s6rc_longrun_s s6rc_longrun_t, *s6rc_longrun_t_ref ;
struct s6rc_longrun_s
{
s6rc_atomic_t satomic ;
- uint32_t nproducers ;
- uint32_t producers ;
- uint32_t consumer ;
} ;
typedef struct s6rc_oneshot_s s6rc_oneshot_t, *s6rc_oneshot_t_ref ;
@@ -90,7 +87,6 @@ struct s6rc_db_s
s6rc_bundle_t const *virtuals ;
uint32_t const *deps[2] ;
uint8_t const *deptypes[2] ;
- uint32_t const *producers ;
char const *storage ;
char const **argvs ; /* alloced */
} ;
@@ -109,4 +105,19 @@ extern s6rc_common_t const *s6rc_service_common (s6rc_db_t const *, uint32_t) ;
extern s6rc_common_t const *s6rc_service_common_tn (s6rc_db_t const *, uint8_t, uint32_t) ;
extern int s6rc_service_recheck_instance (s6rc_db_t const *, uint32_t *, char const **) ;
+typedef struct s6rc_pinfo_s s6rc_pinfo_t, *s6rc_pinfo_t_ref ;
+struct s6rc_pinfo_s
+{
+ uint32_t nproducers ;
+ uint32_t producers ;
+ uint32_t consumer ;
+} ;
+
+typedef struct s6rc_pdb_s s6rc_pdb_t, *s6rc_pdb_t_ref ;
+struct s6rc_pdb_s
+{
+ uint32_t const *pinfo ;
+ uint32_t const *producers ;
+} ;
+
#endif