From 0490a9290a6af4a4923cc79fd380bc00a0a702e3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 5 Dec 2007 17:48:07 +0000 Subject: Remove rc_service_wait as runscript.c should do the waiting. rc_deptree_depend now returns the exact depends as listed. This is so we can support a new 'keywords' directive. We can add whatever here, like 'notimeout' which means that an init script doesn't timeout. This removes the hardcoded check on checkfs and checkroot. --- src/rc.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/rc.h') diff --git a/src/rc.h b/src/rc.h index 8d5f32ea..6a53e7ce 100644 --- a/src/rc.h +++ b/src/rc.h @@ -211,11 +211,6 @@ char *rc_service_value_get (const char *service, const char *option); bool rc_service_value_set (const char *service, const char *option, const char *value); -/*! Wait for a service to finish - * @param service to wait for - * @return true if service finished before timeout, otherwise false */ -bool rc_service_wait (const char *service); - /*! List the services in a runlevel * @param runlevel to list * @return NULL terminated list of services */ @@ -275,6 +270,14 @@ bool rc_deptree_update_needed (void); * @return pointer to the dependency tree */ rc_depinfo_t *rc_deptree_load (void); +/*! List the depend for the type of service + * @param deptree to search + * @param type to use (keywords, etc) + * @param service to check + * @return NULL terminated list of services in order */ +char **rc_deptree_depend (rc_depinfo_t *deptree, + const char *type, const char *service); + /*! List all the services in order that the given services have * for the given types and options. * @param deptree to search -- cgit v1.2.3