src/load_layout.c File Reference

#include <yajl/yajl_common.h>
#include <yajl/yajl_gen.h>
#include <yajl/yajl_parse.h>
#include <yajl/yajl_version.h>
#include "all.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_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_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().

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 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().

Here is the call graph for this function:

static int json_start_map ( void *  ctx  )  [static]

Definition at line 23 of file load_layout.c.

References con_get_workspace(), con_new(), DLOG, 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]

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().

Here is the call graph for this function:

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(), and yyparse().

Here is the call graph for this function:


Variable Documentation

Definition at line 21 of file load_layout.c.

Con* json_node [static]

Definition at line 15 of file load_layout.c.

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]
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().

Con* to_focus [static]

Definition at line 16 of file load_layout.c.

Referenced by handle_unmap_notify_event(), x_push_changes(), and yyparse().


Generated on 6 Aug 2011 for i3 by  doxygen 1.6.1