i3
|
Go to the source code of this file.
Data Structures | |
struct | pending_marks |
struct | focus_mapping |
Functions | |
static | TAILQ_HEAD (focus_mappings_head, focus_mapping) |
static int | json_end_map (void *ctx) |
static int | json_end_array (void *ctx) |
static int | json_key (void *ctx, const unsigned char *val, size_t len) |
static int | json_string (void *ctx, const unsigned char *val, size_t len) |
static int | json_int (void *ctx, long long val) |
static int | json_bool (void *ctx, int val) |
static int | json_double (void *ctx, double val) |
static int | json_determine_content_deeper (void *ctx) |
static int | json_determine_content_shallower (void *ctx) |
static int | json_determine_content_string (void *ctx, const unsigned char *val, size_t len) |
bool | json_validate (const char *buf, const size_t len) |
Returns true if the provided JSON could be parsed by yajl. | |
json_content_t | json_determine_content (const char *buf, const size_t len) |
void | tree_append_json (Con *con, const char *buf, const size_t len, char **errormsg) |
Variables | |
static char * | last_key |
static int | incomplete |
static Con * | json_node |
static Con * | to_focus |
static bool | parsing_gaps |
static bool | parsing_swallows |
static bool | parsing_rect |
static bool | parsing_actual_deco_rect |
static bool | parsing_deco_rect |
static bool | parsing_window_rect |
static bool | parsing_geometry |
static bool | parsing_focus |
static bool | parsing_marks |
struct Match * | current_swallow |
static bool | swallow_is_empty |
static int | num_marks |
struct pending_marks * | marks |
static json_content_t | content_result |
static int | content_level |
|
static |
Definition at line 572 of file load_layout.c.
References ctx, current_swallow, json_node, last_key, LOG, parsing_swallows, swallow_is_empty, and to_focus.
Referenced by tree_append_json().
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().
|
static |
Definition at line 603 of file load_layout.c.
References content_level, and ctx.
Referenced by json_determine_content().
|
static |
Definition at line 608 of file load_layout.c.
References content_level, and ctx.
Referenced by json_determine_content().
|
static |
Definition at line 613 of file load_layout.c.
References content_level, content_result, ctx, DLOG, JSON_CONTENT_WORKSPACE, and last_key.
Referenced by json_determine_content().
|
static |
Definition at line 592 of file load_layout.c.
References ctx, json_node, last_key, and LOG.
Referenced by tree_append_json().
|
static |
Definition at line 217 of file load_layout.c.
References con_fix_percent(), ctx, focused, json_node, LOG, Con::old_id, focus_mapping::old_id, parsing_focus, parsing_marks, parsing_swallows, TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, TAILQ_INSERT_HEAD, and TAILQ_REMOVE.
Referenced by tree_append_json().
|
static |
Definition at line 92 of file load_layout.c.
References con_attach(), con_get_workspace(), con_is_split(), con_mark(), ctx, DLOG, ELOG, floating_check_size(), floating_enable(), FREE, Con::geometry, get_existing_workspace_by_name(), Rect::height, incomplete, json_node, L_DEFAULT, L_SPLITH, LOG, marks, match_free(), max(), MM_ADD, num_marks, parsing_actual_deco_rect, parsing_deco_rect, parsing_gaps, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, rect_equals(), sasprintf(), sstrdup(), swallow_is_empty, TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_REMOVE, Rect::width, ws_name_to_number(), and x_con_init().
Referenced by tree_append_json().
|
static |
Definition at line 481 of file load_layout.c.
References ctx, current_swallow, DLOG, ELOG, Rect::height, json_node, last_key, LOG, focus_mapping::old_id, parsing_focus, parsing_gaps, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, scalloc(), swallow_is_empty, TAILQ_INSERT_TAIL, Rect::width, Rect::x, and Rect::y.
Referenced by tree_append_json().
|
static |
Definition at line 256 of file load_layout.c.
References ctx, FREE, last_key, LOG, num_marks, parsing_actual_deco_rect, parsing_deco_rect, parsing_focus, parsing_gaps, parsing_geometry, parsing_marks, parsing_rect, parsing_swallows, parsing_window_rect, and scalloc().
Referenced by json_determine_content(), and tree_append_json().
|
static |
Definition at line 301 of file load_layout.c.
References BS_NONE, BS_NORMAL, BS_PIXEL, con_mark(), ctx, current_swallow, DLOG, ELOG, FREE, json_node, L_DEFAULT, L_DOCKAREA, L_OUTPUT, L_SPLITH, L_SPLITV, L_STACKED, L_TABBED, last_key, LOG, marks, MM_REPLACE, num_marks, parsing_marks, parsing_swallows, previous_workspace_name, regex_new(), sasprintf(), scalloc(), srealloc(), sstrdup(), sstrndup(), and swallow_is_empty.
Referenced by tree_append_json().
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().
|
static |
Definition at line 52 of file load_layout.c.
References ctx, current_swallow, json_node, last_key, parsing_swallows, and swallow_is_empty.
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(), 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().
|
static |
Definition at line 601 of file load_layout.c.
Referenced by json_determine_content(), json_determine_content_deeper(), json_determine_content_shallower(), and json_determine_content_string().
|
static |
Definition at line 600 of file load_layout.c.
Referenced by json_determine_content(), and json_determine_content_string().
struct Match* current_swallow |
Definition at line 32 of file load_layout.c.
Referenced by json_bool(), json_int(), json_string(), and TAILQ_HEAD().
|
static |
Definition at line 20 of file load_layout.c.
Referenced by json_end_map(), and tree_append_json().
|
static |
Definition at line 21 of file load_layout.c.
Referenced by json_bool(), json_double(), json_end_array(), json_end_map(), json_int(), json_string(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 19 of file load_layout.c.
Referenced by json_bool(), json_determine_content_string(), json_double(), json_int(), json_key(), json_string(), and TAILQ_HEAD().
struct pending_marks * marks |
|
static |
Definition at line 34 of file load_layout.c.
Referenced by json_end_map(), json_key(), and json_string().
|
static |
Definition at line 26 of file load_layout.c.
Referenced by json_end_map(), json_key(), and tree_append_json().
|
static |
Definition at line 27 of file load_layout.c.
Referenced by json_end_map(), json_key(), and tree_append_json().
|
static |
Definition at line 30 of file load_layout.c.
Referenced by json_end_array(), json_int(), json_key(), and tree_append_json().
|
static |
Definition at line 23 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), and tree_append_json().
|
static |
Definition at line 29 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), and tree_append_json().
|
static |
Definition at line 31 of file load_layout.c.
Referenced by json_end_array(), json_key(), json_string(), and tree_append_json().
|
static |
Definition at line 25 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), and tree_append_json().
|
static |
Definition at line 24 of file load_layout.c.
Referenced by json_bool(), json_end_array(), json_end_map(), json_int(), json_key(), json_string(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 28 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), and tree_append_json().
|
static |
Definition at line 33 of file load_layout.c.
Referenced by json_bool(), json_end_map(), json_int(), json_string(), and TAILQ_HEAD().
|
static |
Definition at line 22 of file load_layout.c.
Referenced by get_tree_next_sibling(), json_bool(), tree_append_json(), and x_push_changes().