i3
load_layout.h File Reference
#include <config.h>
Include dependency graph for load_layout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  json_content_t { JSON_CONTENT_UNKNOWN = 0 , JSON_CONTENT_CON = 1 , JSON_CONTENT_WORKSPACE = 2 }
 

Functions

json_content_t json_determine_content (const char *buf, const size_t len)
 
bool json_validate (const char *buf, const size_t len)
 Returns true if the provided JSON could be parsed by yajl.
 
void tree_append_json (Con *con, const char *buf, const size_t len, char **errormsg)
 

Enumeration Type Documentation

◆ json_content_t

Enumerator
JSON_CONTENT_UNKNOWN 
JSON_CONTENT_CON 
JSON_CONTENT_WORKSPACE 

Definition at line 15 of file load_layout.h.

Function Documentation

◆ json_determine_content()

json_content_t json_determine_content ( const char * buf,
const size_t len )

◆ json_validate()

bool json_validate ( const char * buf,
const size_t len )

Returns true if the provided JSON could be parsed by yajl.

Definition at line 629 of file load_layout.c.

References ELOG.

Referenced by cmd_append_layout().

◆ tree_append_json()