From: Charlie Brej Date: Tue, 7 Sep 2010 19:35:28 +0000 (+0100) Subject: protocol: Add "hide message" command to the protocol X-Git-Tag: 0.8.4~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0331ff610293bb692db3213893aecac6eb7e4bdd;p=thirdparty%2Fplymouth.git protocol: Add "hide message" command to the protocol This also renames the "message" command to "show message". --- diff --git a/src/client/ply-boot-client.c b/src/client/ply-boot-client.c index 077206ed..48932ac4 100644 --- a/src/client/ply-boot-client.c +++ b/src/client/ply-boot-client.c @@ -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); } diff --git a/src/ply-boot-protocol.h b/src/ply-boot-protocol.h index 89db6ea3..97d5a421 100644 --- a/src/ply-boot-protocol.h +++ b/src/ply-boot-protocol.h @@ -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" diff --git a/src/ply-boot-server.c b/src/ply-boot-server.c index 7201f959..6165417a 100644 --- a/src/ply-boot-server.c +++ b/src/ply-boot-server.c @@ -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)