diff options
author | Ray Strode <rstrode@redhat.com> | 2010-03-24 16:43:19 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2010-03-24 16:43:19 -0400 |
commit | 544f5bae0a783dc45eedd2465f2199cce61ae6d8 (patch) | |
tree | 1aaa5b28709ccd7121d86ddaa14e27dc15de9f55 /src/client/plymouth.c | |
parent | c0637bd8007dc1b2551ffd02a6b6294053ec7a59 (diff) |
[client] add hide-splash and show-splash subcommands
This is to replace the old style --hide-splash and --show-splash
options.
Diffstat (limited to 'src/client/plymouth.c')
-rw-r--r-- | src/client/plymouth.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/client/plymouth.c b/src/client/plymouth.c index 69c9277e..c424b57b 100644 --- a/src/client/plymouth.c +++ b/src/client/plymouth.c @@ -771,6 +771,28 @@ on_update_root_fs_request (state_t *state, } } +static void +on_show_splash_request (state_t *state, + const char *command) +{ + ply_boot_client_tell_daemon_to_show_splash (state->client, + (ply_boot_client_response_handler_t) + on_success, + (ply_boot_client_response_handler_t) + on_failure, state); +} + +static void +on_hide_splash_request (state_t *state, + const char *command) +{ + ply_boot_client_tell_daemon_to_hide_splash (state->client, + (ply_boot_client_response_handler_t) + on_success, + (ply_boot_client_response_handler_t) + on_failure, state); +} + int main (int argc, char **argv) @@ -818,6 +840,18 @@ main (int argc, NULL); ply_command_parser_add_command (state.command_parser, + "show-splash", "Tell daemon to show splash screen", + (ply_command_handler_t) + on_show_splash_request, &state, + NULL); + + ply_command_parser_add_command (state.command_parser, + "hide-splash", "Tell daemon to hide splash screen", + (ply_command_handler_t) + on_hide_splash_request, &state, + NULL); + + ply_command_parser_add_command (state.command_parser, "ask-for-password", "Ask user for password", (ply_command_handler_t) on_password_request, &state, |