parent
57a37f8af4
commit
964456b628
|
@ -766,7 +766,7 @@ void cmd_border(I3_CMD, const char *border_style_str, long border_width) {
|
||||||
*/
|
*/
|
||||||
void cmd_nop(I3_CMD, const char *comment) {
|
void cmd_nop(I3_CMD, const char *comment) {
|
||||||
LOG("-------------------------------------------------\n");
|
LOG("-------------------------------------------------\n");
|
||||||
LOG(" NOP: %s\n", comment);
|
LOG(" NOP: %.4000s\n", comment);
|
||||||
LOG("-------------------------------------------------\n");
|
LOG("-------------------------------------------------\n");
|
||||||
ysuccess(true);
|
ysuccess(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -263,7 +263,7 @@ char *parse_string(const char **walk, bool as_word) {
|
||||||
* Free the returned CommandResult with command_result_free().
|
* Free the returned CommandResult with command_result_free().
|
||||||
*/
|
*/
|
||||||
CommandResult *parse_command(const char *input, yajl_gen gen, ipc_client *client) {
|
CommandResult *parse_command(const char *input, yajl_gen gen, ipc_client *client) {
|
||||||
DLOG("COMMAND: *%s*\n", input);
|
DLOG("COMMAND: *%.4000s*\n", input);
|
||||||
state = INITIAL;
|
state = INITIAL;
|
||||||
CommandResult *result = scalloc(1, sizeof(CommandResult));
|
CommandResult *result = scalloc(1, sizeof(CommandResult));
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,7 @@ IPC_HANDLER(run_command) {
|
||||||
/* To get a properly terminated buffer, we copy
|
/* To get a properly terminated buffer, we copy
|
||||||
* message_size bytes out of the buffer */
|
* message_size bytes out of the buffer */
|
||||||
char *command = sstrndup((const char *)message, message_size);
|
char *command = sstrndup((const char *)message, message_size);
|
||||||
LOG("IPC: received: *%s*\n", command);
|
LOG("IPC: received: *%.4000s*\n", command);
|
||||||
yajl_gen gen = yajl_gen_alloc(NULL);
|
yajl_gen gen = yajl_gen_alloc(NULL);
|
||||||
|
|
||||||
CommandResult *result = parse_command(command, gen, client);
|
CommandResult *result = parse_command(command, gen, client);
|
||||||
|
|
Loading…
Reference in New Issue