|
i3
|
#include "all.h"#include <yajl/yajl_common.h>#include <yajl/yajl_gen.h>#include <yajl/yajl_parse.h>#include <yajl/yajl_version.h>
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. More... | |
| 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_swallows |
| static bool | parsing_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 497 of file load_layout.c.
References current_swallow, json_node, last_key, LOG, parsing_swallows, Match::restart_mode, Con::sticky, 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 578 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 527 of file load_layout.c.
References content_level.
Referenced by json_determine_content().
|
static |
Definition at line 532 of file load_layout.c.
References content_level.
Referenced by json_determine_content().
|
static |
Definition at line 537 of file load_layout.c.
References content_level, content_result, DLOG, JSON_CONTENT_WORKSPACE, and last_key.
Referenced by json_determine_content().
|
static |
Definition at line 516 of file load_layout.c.
References json_node, last_key, LOG, and Con::percent.
Referenced by tree_append_json().
|
static |
Definition at line 193 of file load_layout.c.
References con_fix_percent(), Con::focus_head, focus_mapping::focus_mappings, focused, json_node, LOG, focus_mapping::old_id, Con::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 88 of file load_layout.c.
References con_attach(), con_get_workspace(), con_is_split(), con_mark(), pending_marks::con_to_be_marked, DLOG, ELOG, floating_check_size(), FREE, Con::geometry, get_existing_workspace_by_name(), Rect::height, incomplete, json_node, L_DEFAULT, L_SPLITH, Con::layout, LOG, pending_marks::mark, marks, match_free(), max(), MM_ADD, Con::name, Con::nodes_head, Con::num, num_marks, Con::parent, parsing_deco_rect, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, Con::rect, sasprintf(), sstrdup(), Con::swallow_head, swallow_is_empty, TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_REMOVE, Con::type, Rect::width, ws_name_to_number(), and x_con_init().
Referenced by tree_append_json().

|
static |
Definition at line 431 of file load_layout.c.
References Con::current_border_width, current_swallow, Con::depth, DLOG, Match::dock, ELOG, focus_mapping::focus_mappings, Con::fullscreen_mode, Con::geometry, Rect::height, Match::id, Match::insert_where, json_node, last_key, LOG, Con::num, focus_mapping::old_id, Con::old_id, parsing_focus, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, Con::rect, scalloc(), swallow_is_empty, TAILQ_INSERT_TAIL, Con::type, Rect::width, Con::window_rect, Rect::x, and Rect::y.
Referenced by tree_append_json().

|
static |
Definition at line 231 of file load_layout.c.
References FREE, last_key, LOG, num_marks, parsing_deco_rect, parsing_focus, 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 262 of file load_layout.c.
References Con::border_style, BS_NONE, BS_NORMAL, BS_PIXEL, Match::class, con_mark(), pending_marks::con_to_be_marked, Con::current_border_width, current_swallow, DLOG, ELOG, Con::floating, FREE, Match::instance, json_node, L_DEFAULT, L_DOCKAREA, L_OUTPUT, L_SPLITH, L_SPLITV, L_STACKED, L_TABBED, last_key, Con::last_split_layout, Con::layout, LOG, pending_marks::mark, marks, MM_REPLACE, Con::name, num_marks, parsing_marks, parsing_swallows, previous_workspace_name, regex_new(), sasprintf(), scalloc(), Con::scratchpad_state, srealloc(), sstrdup(), sstrndup(), Con::sticky_group, swallow_is_empty, Match::title, Con::title_format, Con::type, Match::window_role, and Con::workspace_layout.
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 551 of file load_layout.c.
References ELOG.
Referenced by cmd_append_layout().
|
static |
Definition at line 53 of file load_layout.c.
References con_get_workspace(), con_new_skeleton(), current_swallow, DLOG, Match::dock, incomplete, json_node, last_key, LOG, match_init(), Con::name, Con::parent, parsing_deco_rect, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, smalloc(), Con::swallow_head, swallow_is_empty, and TAILQ_INSERT_TAIL.

| void tree_append_json | ( | Con * | con, |
| const char * | buf, | ||
| const size_t | len, | ||
| char ** | errormsg | ||
| ) |
Definition at line 611 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_deco_rect, parsing_focus, 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 525 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 524 of file load_layout.c.
Referenced by json_determine_content(), and json_determine_content_string().
| struct Match* current_swallow |
Definition at line 31 of file load_layout.c.
Referenced by json_bool(), json_int(), json_string(), and TAILQ_HEAD().
|
static |
Definition at line 21 of file load_layout.c.
Referenced by json_end_map(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 22 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 20 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 33 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(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 29 of file load_layout.c.
Referenced by json_end_array(), json_int(), json_key(), and tree_append_json().
|
static |
Definition at line 28 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 30 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(), TAILQ_HEAD(), 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 27 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 32 of file load_layout.c.
Referenced by json_bool(), json_end_map(), json_int(), json_string(), and TAILQ_HEAD().
|
static |
Definition at line 23 of file load_layout.c.
Referenced by json_bool(), tree_append_json(), and x_push_changes().
1.8.14