|
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 | focus_mapping |
Macros | |
| #define | I3__FILE__ "load_layout.c" |
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) |
| json_content_t | json_determine_content (const char *filename) |
| void | tree_append_json (Con *con, const char *filename, char **errormsg) |
Variables | |
| static char * | last_key |
| 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 |
| struct Match * | current_swallow |
| static json_content_t | content_result |
| static int | content_level |
| #define I3__FILE__ "load_layout.c" |
Definition at line 2 of file load_layout.c.
|
static |
Definition at line 405 of file load_layout.c.
References json_node, last_key, LOG, parsing_swallows, and Match::restart_mode.
Referenced by tree_append_json().
| json_content_t json_determine_content | ( | const char * | filename | ) |
Definition at line 454 of file load_layout.c.
References content_result, DLOG, ELOG, JSON_CONTENT_CON, JSON_CONTENT_UNKNOWN, json_determine_content_deeper(), json_determine_content_shallower(), json_determine_content_string(), json_key(), and smalloc().
Referenced by cmd_append_layout().

|
static |
Definition at line 430 of file load_layout.c.
Referenced by json_determine_content().
|
static |
Definition at line 435 of file load_layout.c.
Referenced by json_determine_content().
|
static |
Definition at line 440 of file load_layout.c.
References DLOG, JSON_CONTENT_WORKSPACE, and last_key.
Referenced by json_determine_content().
|
static |
Definition at line 419 of file load_layout.c.
References last_key, LOG, and Con::percent.
Referenced by tree_append_json().
|
static |
Definition at line 133 of file load_layout.c.
References con_fix_percent(), focused, LOG, focus_mapping::old_id, Con::old_id, parsing_focus, 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 70 of file load_layout.c.
References con_attach(), con_is_split(), croot, Con::depth, DLOG, FREE, GREP_FIRST, L_DEFAULT, L_SPLITH, Con::layout, LOG, match_free(), Con::name, Con::num, output_get_content(), Con::parent, parsing_deco_rect, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, sasprintf(), sstrdup(), TAILQ_EMPTY, TAILQ_FIRST, TAILQ_FOREACH, TAILQ_REMOVE, Con::type, ws_name_to_number(), and x_con_init().
Referenced by tree_append_json().

|
static |
Definition at line 342 of file load_layout.c.
References Con::current_border_width, Con::depth, DLOG, Match::dock, ELOG, Con::fullscreen_mode, Con::geometry, Rect::height, Match::id, Match::insert_where, 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(), TAILQ_INSERT_TAIL, Con::type, Rect::width, Con::window_rect, Rect::x, and Rect::y.
Referenced by tree_append_json().

|
static |
Definition at line 167 of file load_layout.c.
References FREE, last_key, LOG, parsing_deco_rect, parsing_focus, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, and scalloc().
Referenced by json_determine_content(), and tree_append_json().

|
static |
Definition at line 193 of file load_layout.c.
References Con::border_style, BS_NONE, BS_NORMAL, BS_PIXEL, Match::class, Con::current_border_width, ELOG, Con::floating, Match::instance, L_DEFAULT, L_DOCKAREA, L_OUTPUT, L_SPLITH, L_SPLITV, L_STACKED, L_TABBED, last_key, Con::last_split_layout, Con::layout, LOG, Con::mark, Con::name, parsing_swallows, regex_new(), sasprintf(), scalloc(), Con::scratchpad_state, Con::sticky_group, Match::title, Con::type, Match::window_role, and Con::workspace_layout.
Referenced by tree_append_json().

|
static |
Definition at line 40 of file load_layout.c.
References con_get_workspace(), con_new_skeleton(), DLOG, json_node, last_key, LOG, match_init(), Con::name, Con::parent, parsing_deco_rect, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, smalloc(), and TAILQ_INSERT_TAIL.

| void tree_append_json | ( | Con * | con, |
| const char * | filename, | ||
| char ** | errormsg | ||
| ) |
Definition at line 511 of file load_layout.c.
References con_fix_percent(), con_focus(), DLOG, ELOG, json_bool(), json_double(), json_end_array(), json_end_map(), json_int(), json_key(), json_string(), parsing_deco_rect, parsing_focus, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, smalloc(), and sstrdup().
Referenced by cmd_append_layout(), and tree_restore().

|
static |
Definition at line 428 of file load_layout.c.
|
static |
Definition at line 427 of file load_layout.c.
Referenced by json_determine_content().
| struct Match* current_swallow |
Definition at line 31 of file load_layout.c.
|
static |
Definition at line 23 of file load_layout.c.
Referenced by json_bool(), and TAILQ_HEAD().
|
static |
Definition at line 22 of file load_layout.c.
Referenced by json_bool(), json_determine_content_string(), json_double(), json_int(), json_key(), json_string(), and TAILQ_HEAD().
|
static |
Definition at line 27 of file load_layout.c.
Referenced by json_end_map(), json_key(), TAILQ_HEAD(), 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 29 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 26 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 25 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(), TAILQ_HEAD(), and tree_append_json().
|
static |
Definition at line 24 of file load_layout.c.
Referenced by x_push_changes().
1.8.9.1