i3
|
#include <yajl/yajl_common.h>
#include <yajl/yajl_gen.h>
#include <yajl/yajl_parse.h>
#include <yajl/yajl_version.h>
#include "all.h"
Go to the source code of this file.
Functions | |
static int | json_start_map (void *ctx) |
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_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 |
struct Match * | current_swallow |
static int json_double | ( | void * | ctx, |
double | val | ||
) | [static] |
Definition at line 211 of file load_layout.c.
References last_key, LOG, and Con::percent.
Referenced by tree_append_json().
static int json_end_array | ( | void * | ctx | ) | [static] |
Definition at line 64 of file load_layout.c.
References LOG, and parsing_swallows.
Referenced by tree_append_json().
static int json_end_map | ( | void * | ctx | ) | [static] |
Definition at line 48 of file load_layout.c.
References con_attach(), LOG, Con::parent, parsing_geometry, parsing_rect, parsing_swallows, and parsing_window_rect.
Referenced by tree_append_json().
static int json_int | ( | void * | ctx, |
long | val | ||
) | [static] |
Definition at line 157 of file load_layout.c.
References Match::dock, Con::fullscreen_mode, Con::geometry, Rect::height, Match::id, Match::insert_where, json_node, last_key, Con::layout, LOG, Con::num, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, Con::rect, Con::type, Rect::width, Con::window_rect, Rect::x, and Rect::y.
Referenced by tree_append_json().
static int json_key | ( | void * | ctx, |
const unsigned char * | val, | ||
unsigned int | len | ||
) | [static] |
Definition at line 71 of file load_layout.c.
References FREE, json_string(), last_key, LOG, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, and scalloc().
Referenced by tree_append_json().
static int json_start_map | ( | void * | ctx | ) | [static] |
Definition at line 23 of file load_layout.c.
References con_get_workspace(), con_new(), DLOG, json_node, last_key, LOG, match_init(), Con::parent, parsing_geometry, parsing_rect, parsing_swallows, parsing_window_rect, smalloc(), and TAILQ_INSERT_TAIL.
Referenced by tree_append_json().
static int json_string | ( | void * | ctx, |
const unsigned char * | val, | ||
unsigned int | len | ||
) | [static] |
Definition at line 94 of file load_layout.c.
References Con::border_style, BS_1PIXEL, BS_NONE, BS_NORMAL, Match::class, HORIZ, last_key, Con::layout, LOG, Con::name, NO_ORIENTATION, Con::orientation, parsing_swallows, scalloc(), Con::sticky_group, and VERT.
Referenced by json_key(), and tree_append_json().
void tree_append_json | ( | const char * | filename | ) |
Definition at line 219 of file load_layout.c.
References con_focus(), focused, json_double(), json_end_array(), json_end_map(), json_int(), json_key(), json_start_map(), json_string(), LOG, parsing_geometry, parsing_rect, and parsing_window_rect.
Referenced by tree_restore().
struct Match* current_swallow |
Definition at line 21 of file load_layout.c.
Definition at line 15 of file load_layout.c.
Referenced by json_int(), and json_start_map().
char* last_key [static] |
Definition at line 14 of file load_layout.c.
Referenced by json_double(), json_int(), json_key(), json_start_map(), and json_string().
bool parsing_geometry [static] |
Definition at line 20 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), json_start_map(), and tree_append_json().
bool parsing_rect [static] |
Definition at line 18 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), json_start_map(), and tree_append_json().
bool parsing_swallows [static] |
Definition at line 17 of file load_layout.c.
Referenced by json_end_array(), json_end_map(), json_int(), json_key(), json_start_map(), and json_string().
bool parsing_window_rect [static] |
Definition at line 19 of file load_layout.c.
Referenced by json_end_map(), json_int(), json_key(), json_start_map(), and tree_append_json().
Definition at line 16 of file load_layout.c.
Referenced by handle_unmap_notify_event(), and x_push_changes().