]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
protocol: Add "hide message" command to the protocol
authorCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 7 Sep 2010 19:35:28 +0000 (20:35 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 7 Sep 2010 19:35:28 +0000 (20:35 +0100)
This also renames the "message" command to "show message".

src/client/ply-boot-client.c
src/ply-boot-protocol.h
src/ply-boot-server.c

index 077206ed705883a551d959eaf7760b6daddb03bb..48932ac4d7416c1d29520a25dd49bc0c0ca5c354 100644 (file)
@@ -551,7 +551,7 @@ ply_boot_client_tell_daemon_to_display_message (ply_boot_client_t
   assert (client != NULL);
   assert (message != NULL);
 
-  ply_boot_client_queue_request (client, PLY_BOOT_PROTOCOL_REQUEST_TYPE_MESSAGE,
+  ply_boot_client_queue_request (client, PLY_BOOT_PROTOCOL_REQUEST_TYPE_SHOW_MESSAGE,
                                  message, handler, failed_handler, user_data);
 }
 
index 89db6ea38b33de5db1e875313404eb59310cf7f2..97d5a42127eb0eedb16ec02ea953a60dafc9ef80 100644 (file)
@@ -32,7 +32,8 @@
 #define PLY_BOOT_PROTOCOL_REQUEST_TYPE_PASSWORD "*"
 #define PLY_BOOT_PROTOCOL_REQUEST_TYPE_CACHED_PASSWORD "c"
 #define PLY_BOOT_PROTOCOL_REQUEST_TYPE_QUESTION "W"
-#define PLY_BOOT_PROTOCOL_REQUEST_TYPE_MESSAGE "M"
+#define PLY_BOOT_PROTOCOL_REQUEST_TYPE_SHOW_MESSAGE "M"
+#define PLY_BOOT_PROTOCOL_REQUEST_TYPE_HIDE_MESSAGE "m"
 #define PLY_BOOT_PROTOCOL_REQUEST_TYPE_KEYSTROKE "K"
 #define PLY_BOOT_PROTOCOL_REQUEST_TYPE_KEYSTROKE_REMOVE "L"
 #define PLY_BOOT_PROTOCOL_REQUEST_TYPE_PROGRESS_PAUSE "A"
index 7201f9599386308c3c93545b5830fe8ce4213129..6165417a1662837207c7f6feac34a04332f81d19 100644 (file)
@@ -542,7 +542,7 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection)
       free(command);
       return;
     }
-  else if (strcmp (command, PLY_BOOT_PROTOCOL_REQUEST_TYPE_MESSAGE) == 0)
+  else if (strcmp (command, PLY_BOOT_PROTOCOL_REQUEST_TYPE_SHOW_MESSAGE) == 0)
     {
       ply_trace ("got message request");
       if (server->display_message_handler != NULL)