diff options
author | Roy Marples <roy@marples.name> | 2007-10-03 14:11:55 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-03 14:11:55 +0000 |
commit | 260318f24fb806be93122b1704ad4e0ea80a748f (patch) | |
tree | d2613f36bd7a1fee2bff228b011b43fdeb353c1a | |
parent | 0ccf248afde8159ece027af1491daed97c761420 (diff) |
rc_get_runlevels -> rc_runlevel_list
-rw-r--r-- | src/librc.c | 4 | ||||
-rw-r--r-- | src/librc.h | 4 | ||||
-rw-r--r-- | src/rc-status.c | 6 | ||||
-rw-r--r-- | src/rc-update.c | 4 | ||||
-rw-r--r-- | src/rc.h | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/librc.c b/src/librc.c index f376ffc3..85e2c177 100644 --- a/src/librc.c +++ b/src/librc.c @@ -62,7 +62,7 @@ bool rc_runlevel_stopping (void) } librc_hidden_def(rc_runlevel_stopping) -char **rc_get_runlevels (void) +char **rc_runlevel_list (void) { char **dirs = rc_ls_dir (RC_RUNLEVELDIR, 0); char **runlevels = NULL; @@ -79,7 +79,7 @@ char **rc_get_runlevels (void) return (runlevels); } -librc_hidden_def(rc_get_runlevels) +librc_hidden_def(rc_runlevel_list) char *rc_runlevel_get (void) { diff --git a/src/librc.h b/src/librc.h index 6a1fbf6c..f8358275 100644 --- a/src/librc.h +++ b/src/librc.h @@ -66,7 +66,6 @@ librc_hidden_proto(rc_find_pids) librc_hidden_proto(rc_get_config) librc_hidden_proto(rc_get_config_entry) librc_hidden_proto(rc_get_list) -librc_hidden_proto(rc_get_runlevels) librc_hidden_proto(rc_is_dir) librc_hidden_proto(rc_is_exec) librc_hidden_proto(rc_is_file) @@ -74,8 +73,9 @@ librc_hidden_proto(rc_is_link) librc_hidden_proto(rc_ls_dir) librc_hidden_proto(rc_make_env) librc_hidden_proto(rc_rm_dir) -librc_hidden_proto(rc_runlevel_get) librc_hidden_proto(rc_runlevel_exists) +librc_hidden_proto(rc_runlevel_get) +librc_hidden_proto(rc_runlevel_list) librc_hidden_proto(rc_runlevel_set) librc_hidden_proto(rc_runlevel_starting) librc_hidden_proto(rc_runlevel_stopping) diff --git a/src/rc-status.c b/src/rc-status.c index aa7ca30c..b23c93a7 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -93,10 +93,10 @@ int rc_status (int argc, char **argv) while ((opt = getopt_long(argc, argv, getoptstring, longopts, (int *) 0)) != -1) switch (opt) { case 'a': - levels = rc_get_runlevels (); + levels = rc_runlevel_list (); break; case 'l': - levels = rc_get_runlevels (); + levels = rc_runlevel_list (); STRLIST_FOREACH (levels, level, i) printf ("%s\n", level); rc_strlist_free (levels); @@ -109,7 +109,7 @@ int rc_status (int argc, char **argv) exit (EXIT_SUCCESS); case 'u': services = rc_services_in_runlevel (NULL); - levels = rc_get_runlevels (); + levels = rc_runlevel_list (); STRLIST_FOREACH (services, service, i) { bool found = false; STRLIST_FOREACH (levels, level, j) diff --git a/src/rc-update.c b/src/rc-update.c index e799f973..5e5786b9 100644 --- a/src/rc-update.c +++ b/src/rc-update.c @@ -208,7 +208,7 @@ int rc_update (int argc, char **argv) if (service) rc_strlist_add (&runlevels, service); if (! runlevels) - runlevels = rc_get_runlevels (); + runlevels = rc_runlevel_list (); show (runlevels, verbose); } else { @@ -226,7 +226,7 @@ int rc_update (int argc, char **argv) else eerrorx ("%s: invalid action", applet); if (! runlevels) - runlevels = rc_get_runlevels (); + runlevels = rc_runlevel_list (); STRLIST_FOREACH (runlevels, runlevel, i) { ssize_t ret = actfunc (runlevel, service); if (ret < 0) @@ -180,7 +180,7 @@ bool rc_runlevel_exists (const char *runlevel); /*! Return a NULL terminated list of runlevels * @return a NULL terminated list of runlevels */ -char **rc_get_runlevels (void); +char **rc_runlevel_list (void); /*! Is the runlevel starting? * @return true if yes, otherwise false */ |