i3
|
#include <config.h>
Go to the source code of this file.
Enumerations | |
enum | json_content_t { JSON_CONTENT_UNKNOWN = 0 , JSON_CONTENT_CON = 1 , JSON_CONTENT_WORKSPACE = 2 } |
Functions | |
json_content_t | json_determine_content (const char *buf, const size_t len) |
bool | json_validate (const char *buf, const size_t len) |
Returns true if the provided JSON could be parsed by yajl. | |
void | tree_append_json (Con *con, const char *buf, const size_t len, char **errormsg) |
enum json_content_t |
Enumerator | |
---|---|
JSON_CONTENT_UNKNOWN | |
JSON_CONTENT_CON | |
JSON_CONTENT_WORKSPACE |
Definition at line 15 of file load_layout.h.
json_content_t json_determine_content | ( | const char * | buf, |
const size_t | len ) |
Definition at line 656 of file load_layout.c.
References content_level, content_result, ELOG, JSON_CONTENT_CON, json_determine_content_deeper(), json_determine_content_shallower(), json_determine_content_string(), and json_key().
Referenced by cmd_append_layout().
bool json_validate | ( | const char * | buf, |
const size_t | len ) |
Returns true if the provided JSON could be parsed by yajl.
Definition at line 629 of file load_layout.c.
References ELOG.
Referenced by cmd_append_layout().
void tree_append_json | ( | Con * | con, |
const char * | buf, | ||
const size_t | len, | ||
char ** | errormsg ) |
Definition at line 689 of file load_layout.c.
References con_activate(), con_fix_percent(), con_free(), DLOG, ELOG, incomplete, json_bool(), json_double(), json_end_array(), json_end_map(), json_int(), json_key(), json_node, json_string(), Con::parent, parsing_actual_deco_rect, parsing_deco_rect, parsing_focus, parsing_gaps, parsing_geometry, parsing_marks, parsing_rect, parsing_swallows, parsing_window_rect, sstrdup(), and to_focus.
Referenced by cmd_append_layout(), and tree_restore().