diff options
author | Roy Marples <roy@marples.name> | 2007-12-05 17:48:07 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-05 17:48:07 +0000 |
commit | 0490a9290a6af4a4923cc79fd380bc00a0a702e3 (patch) | |
tree | 5848bf69e4dc0357cc092ed30c974d20154c6469 /src/rc.h | |
parent | f40f7528be64269af7a5401af95dd37d398a5b31 (diff) |
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.
Diffstat (limited to 'src/rc.h')
-rw-r--r-- | src/rc.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |