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, unsigned int len) |
static int | json_string (void *ctx, const unsigned char *val, unsigned int len) |
static int | json_int (void *ctx, long val) |
static int | json_bool (void *ctx, int val) |
static int | json_double (void *ctx, double val) |
void | tree_append_json (const char *filename) |
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 328 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 342 of file load_layout.c.
References last_key, LOG, and Con::percent.
Referenced by tree_append_json().
|
static |
Definition at line 85 of file load_layout.c.
References 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::depth, LOG, Con::parent, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, and x_con_init().
Referenced by tree_append_json().
|
static |
Definition at line 267 of file load_layout.c.
References Con::current_border_width, Con::depth, Match::dock, 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 115 of file load_layout.c.
References FREE, json_string(), 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 144 of file load_layout.c.
References Con::border_style, BS_NONE, BS_NORMAL, BS_PIXEL, Match::class, Con::current_border_width, Con::floating, 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, sasprintf(), scalloc(), Con::scratchpad_state, Con::sticky_group, and Con::workspace_layout.
Referenced by json_key(), and 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 | ( | const char * | filename) |
Definition at line 350 of file load_layout.c.
References con_focus(), focused, json_bool(), json_double(), json_end_array(), json_end_map(), json_int(), json_key(), json_start_map(), json_string(), LOG, parsing_geometry, parsing_rect, parsing_window_rect, and smalloc().
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(), and json_key().
|
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(), and TAILQ_HEAD().
|
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.