i3
Data Structures | Functions | Variables
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.

Data Structures

struct  focus_mapping
 

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

Function Documentation

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

Definition at line 285 of file load_layout.c.

References json_node, last_key, LOG, parsing_swallows, and Match::restart_mode.

Referenced by tree_append_json().

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

Definition at line 299 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
static int json_end_map ( void *  ctx)
static

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

Here is the call graph for this function:

static int json_string ( void *  ctx,
const unsigned char *  val,
unsigned int  len 
)
static
static TAILQ_HEAD ( focus_mappings_head  ,
focus_mapping   
)
static
void tree_append_json ( const char *  filename)

Definition at line 307 of file load_layout.c.

References con_focus(), focused, json_bool(), json_double(), json_end_array(), json_end_map(), json_int(), json_key(), json_string(), LOG, parsing_geometry, parsing_rect, and parsing_window_rect.

Referenced by cmd_append_layout(), and tree_restore().

Here is the call graph for this function:

Variable Documentation

struct Match* current_swallow

Definition at line 28 of file load_layout.c.

Con* json_node
static

Definition at line 21 of file load_layout.c.

Referenced by json_bool(), and TAILQ_HEAD().

char* last_key
static

Definition at line 20 of file load_layout.c.

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

bool parsing_focus
static

Definition at line 27 of file load_layout.c.

Referenced by json_end_array(), json_int(), and json_key().

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

bool parsing_rect
static

Definition at line 24 of file load_layout.c.

Referenced by json_end_map(), json_int(), json_key(), TAILQ_HEAD(), 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(), TAILQ_HEAD(), and tree_append_json().

Con* to_focus
static

Definition at line 22 of file load_layout.c.

Referenced by x_push_changes().