]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Add new "report-error" subcommand
authorRay Strode <rstrode@redhat.com>
Tue, 23 Sep 2008 19:54:38 +0000 (15:54 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 23 Sep 2008 19:54:38 +0000 (15:54 -0400)
It's just like --details but better named

src/client/plymouth.c

index ded48ca470ee95f472efbe15f71174d7204166c2..6ad90eaf5285453581ebffea01fb7a51084c94b1 100644 (file)
@@ -320,6 +320,18 @@ on_password_request (state_t    *state,
     }
 }
 
+static void
+on_report_error_request (state_t    *state,
+                         const char *command)
+{
+  ply_boot_client_tell_daemon_about_error (state->client,
+                                           (ply_boot_client_response_handler_t)
+                                           on_success,
+                                           (ply_boot_client_response_handler_t)
+                                           on_failure, state);
+
+}
+
 static void
 on_quit_request (state_t    *state,
                  const char *command)
@@ -384,6 +396,12 @@ main (int    argc,
                                   PLY_COMMAND_OPTION_TYPE_INTEGER,
                                   NULL);
 
+  ply_command_parser_add_command (state.command_parser,
+                                  "report-error", "Tell boot daemon there were errors during boot",
+                                  (ply_command_handler_t)
+                                  on_report_error_request, &state,
+                                  NULL);
+
   ply_command_parser_add_command (state.command_parser,
                                   "quit", "Tell boot daemon to quit",
                                   (ply_command_handler_t)