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) |
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_window_rect |
static bool | parsing_geometry |
static bool | parsing_focus |
struct Match * | current_swallow |
#define I3__FILE__ "load_layout.c" |
Definition at line 2 of file load_layout.c.
|
static |
Definition at line 371 of file load_layout.c.
References json_node, last_key, LOG, parsing_swallows, and Match::restart_mode.
Referenced by tree_append_json().
|
static |
Definition at line 385 of file load_layout.c.
References last_key, LOG, and Con::percent.
Referenced by tree_append_json().
|
static |
Definition at line 102 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 67 of file load_layout.c.
References con_attach(), con_is_split(), Con::depth, DLOG, L_DEFAULT, L_SPLITH, Con::layout, LOG, match_free(), Con::parent, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, TAILQ_EMPTY, TAILQ_FIRST, TAILQ_REMOVE, and x_con_init().
Referenced by tree_append_json().
|
static |
Definition at line 308 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 136 of file load_layout.c.
References FREE, last_key, LOG, parsing_focus, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, and scalloc().
Referenced by tree_append_json().
|
static |
Definition at line 159 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 39 of file load_layout.c.
References con_get_workspace(), con_new_skeleton(), DLOG, json_node, last_key, LOG, match_init(), Con::parent, 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 393 of file load_layout.c.
References con_fix_percent(), con_focus(), ELOG, json_bool(), json_double(), json_end_array(), json_end_map(), json_int(), json_key(), json_string(), LOG, parsing_focus, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, smalloc(), and sstrdup().
Referenced by cmd_append_layout(), and tree_restore().
struct Match* current_swallow |
Definition at line 30 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_double(), json_int(), json_key(), json_string(), and TAILQ_HEAD().
|
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 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 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 24 of file load_layout.c.
Referenced by x_push_changes().