i3
Functions | Variables
src/load_layout.c File Reference
#include "all.h"
#include <yajl/yajl_common.h>
#include <yajl/yajl_gen.h>
#include <yajl/yajl_parse.h>
#include <yajl/yajl_version.h>
Include dependency graph for load_layout.c:

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_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 Conjson_node
static Conto_focus
static bool parsing_swallows
static bool parsing_rect
static bool parsing_window_rect
static bool parsing_geometry
struct Matchcurrent_swallow

Function Documentation

static int json_bool ( void *  ctx,
int  val 
) [static]

Definition at line 214 of file load_layout.c.

References json_node, last_key, and LOG.

Referenced by tree_append_json().

static int json_double ( void *  ctx,
double  val 
) [static]

Definition at line 223 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 70 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 54 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().

Here is the call graph for this function:

static int json_int ( void *  ctx,
long  val 
) [static]
static int json_key ( void *  ctx,
const unsigned char *  val,
unsigned int  len 
) [static]

Definition at line 77 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().

Here is the call graph for this function:

static int json_start_map ( void *  ctx) [static]

Definition at line 29 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().

Here is the call graph for this function:

static int json_string ( void *  ctx,
const unsigned char *  val,
unsigned int  len 
) [static]
void tree_append_json ( const char *  filename)

Variable Documentation

Definition at line 27 of file load_layout.c.

Con* json_node [static]

Definition at line 21 of file load_layout.c.

Referenced by json_bool(), and json_start_map().

char* last_key [static]

Definition at line 20 of file load_layout.c.

Referenced by json_bool(), json_double(), json_int(), json_key(), json_start_map(), and json_string().

bool parsing_geometry [static]

Definition at line 26 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 24 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]
bool parsing_window_rect [static]

Definition at line 25 of file load_layout.c.

Referenced by json_end_map(), json_int(), json_key(), json_start_map(), and tree_append_json().

Con* to_focus [static]

Definition at line 22 of file load_layout.c.

Referenced by x_push_changes().