summaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-27 23:16:40 +0000
committerRoy Marples <roy@marples.name>2007-09-27 23:16:40 +0000
commite89c2c5d60ad97f60e6dfecabc39acef8bc03525 (patch)
tree2e8c697d6cd8af6d08546d2139131cf81aaae2a7 /src/rc.h
parent8c402e53ee1aecbe52ea79f5ab596790d29eba21 (diff)
downloadopenrc-e89c2c5d60ad97f60e6dfecabc39acef8bc03525.tar.gz
openrc-e89c2c5d60ad97f60e6dfecabc39acef8bc03525.tar.bz2
openrc-e89c2c5d60ad97f60e6dfecabc39acef8bc03525.tar.xz
The rc_depinfo_t and rc_deptype_t structures are not for public consumption.
Diffstat (limited to 'src/rc.h')
-rw-r--r--src/rc.h30
1 files changed, 7 insertions, 23 deletions
diff --git a/src/rc.h b/src/rc.h
index 4004afa..88adef1 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -239,29 +239,13 @@ bool rc_service_daemons_crashed (const char *service);
/*! @name Dependencies
* We analyse each init script and cache the resultant dependency tree.
- * This tree can be accessed using the below structures and functions. */
-/*! Singly linked list of dependency types that list the services the
- * type is for */
-typedef struct rc_deptype
-{
- /*! ineed, iuse, iafter, etc */
- char *type;
- /*! NULL terminated list of services */
- char **services;
- /*! Next dependency type */
- struct rc_deptype *next;
-} rc_deptype_t;
-
-/*! Singly linked list of services and their dependencies */
-typedef struct rc_depinfo
-{
- /*! Name of service */
- char *service;
- /*! Dependencies */
- rc_deptype_t *depends;
- /*! Next service dependency type */
- struct rc_depinfo *next;
-} rc_depinfo_t;
+ * This tree can be accessed using the below functions. */
+
+#ifndef _IN_LIBRC
+/* Handles to internal structures */
+typedef void *rc_deptype_t;
+typedef void *rc_depinfo_t;
+#endif
/*! Update the cached dependency tree if it's older than any init script,
* its configuration file or an external configuration file the init script