]> git.sur5r.net Git - i3/i3/commit
Refactor parse_command
authorTony Crisci <tony@dubstepdish.com>
Wed, 28 May 2014 06:01:50 +0000 (02:01 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 31 May 2014 12:59:35 +0000 (14:59 +0200)
commitc7aae5603005d5277633b179cf27e3106b35371f
tree0001022e602b8be953b205cace14060a8b2ff7d6
parent62ea60ba4260c66fb3268a5dadae194d72333b42
Refactor parse_command

parse_command returns a struct that contains useful information about
the result of a command as a whole (instead of the intermediate
representation used during parsing).

parse_command now requires the caller to allocate the yajl_gen used for
generating a json reply. This is passed as the second parameter to
parse_command. If NULL is passed, no json reply will be generated.
include/commands_parser.h
src/assignments.c
src/commands.c
src/commands_parser.c
src/ipc.c
src/key_press.c