ipc: rename COMMAND to RUN_COMMAND for consistency (#2956)
All other message types are verbs, only our first-ever message COMMAND wasn’t. While we’re here, also change the message type dictionary into a table with clickable links to the corresponding reply type. Authors of downstream IPC libraries are encouraged to keep the old name around so as to not break existing code, but mark it as deprecated.
This commit is contained in:
committed by
GitHub
parent
d726d09d49
commit
607e97e651
@ -113,7 +113,7 @@ void ipc_shutdown(shutdown_reason_t reason) {
|
||||
* or not (at the moment, always returns true).
|
||||
*
|
||||
*/
|
||||
IPC_HANDLER(command) {
|
||||
IPC_HANDLER(run_command) {
|
||||
/* To get a properly terminated buffer, we copy
|
||||
* message_size bytes out of the buffer */
|
||||
char *command = scalloc(message_size + 1, 1);
|
||||
@ -1121,7 +1121,7 @@ IPC_HANDLER(get_config) {
|
||||
/* The index of each callback function corresponds to the numeric
|
||||
* value of the message type (see include/i3/ipc.h) */
|
||||
handler_t handlers[10] = {
|
||||
handle_command,
|
||||
handle_run_command,
|
||||
handle_get_workspaces,
|
||||
handle_subscribe,
|
||||
handle_get_outputs,
|
||||
|
Reference in New Issue
Block a user