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 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 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.
Referenced by json_determine_content().
|
static |
Definition at line 608 of file load_layout.c.
References content_level.
Referenced by json_determine_content().
|
static |
Definition at line 613 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 592 of file load_layout.c.
References json_node, last_key, LOG, and Con::percent.
Referenced by tree_append_json().
|
static |
Definition at line 217 of file load_layout.c.
References con_fix_percent(), 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(), pending_marks::con_to_be_marked, DLOG, ELOG, Con::floating, floating_check_size(), floating_enable(), 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::num, num_marks, Con::parent, parsing_actual_deco_rect, parsing_deco_rect, parsing_gaps, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, Con::rect, rect_equals(), sasprintf(), sstrdup(), 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 481 of file load_layout.c.
References gaps_t::bottom, Con::current_border_width, current_swallow, Con::depth, DLOG, Match::dock, ELOG, Con::fullscreen_mode, Con::gaps, Con::geometry, Rect::height, Match::id, gaps_t::inner, Match::insert_where, json_node, last_key, gaps_t::left, LOG, Con::num, Con::old_id, focus_mapping::old_id, parsing_focus, parsing_gaps, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, Con::rect, gaps_t::right, scalloc(), swallow_is_empty, TAILQ_INSERT_TAIL, gaps_t::top, Con::type, Rect::width, Con::window_icon_padding, Con::window_rect, Rect::x, and Rect::y.
Referenced by tree_append_json().
|
static |
Definition at line 256 of file load_layout.c.
References 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 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, Match::machine, pending_marks::mark, marks, Con::max_user_border_style, 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 629 of file load_layout.c.
References ELOG.
Referenced by cmd_append_layout().
|
static |
Definition at line 52 of file load_layout.c.
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().
|
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(), and json_string().
|
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(), 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(), and json_string().
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(), 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(), and json_string().
|
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().