HomePort
Macros | Functions
rest_json.c File Reference
Include dependency graph for rest_json.c:

Go to the source code of this file.

Macros

#define REST_JSON_RETURN_JSON_ERROR(CONTEXT)   HPD_LOG_RETURN(context, HPD_E_UNKNOWN, "Json error")
 

Functions

hpd_error_t hpd_rest_json_get_configuration (hpd_t *hpd, hpd_rest_t *rest, const hpd_module_t *context, char **out)
 
hpd_error_t hpd_rest_json_get_value (char *value, const hpd_module_t *context, char **out)
 
hpd_error_t hpd_rest_json_parse_value (const char *in, const hpd_module_t *context, char **out)
 
static hpd_error_t rest_json_add (json_t *parent, const char *key, const char *val, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_adapter (json_t *parent, hpd_adapter_id_t *adapter, hpd_rest_t *rest, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_adapters (json_t *parent, hpd_t *hpd, hpd_rest_t *rest, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_attr (json_t *parent, hpd_pair_t *pair, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_configuration (json_t *parent, hpd_t *hpd, hpd_rest_t *rest, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_device (json_t *parent, hpd_device_id_t *device, hpd_rest_t *rest, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_devices (json_t *parent, hpd_adapter_id_t *adapter, hpd_rest_t *rest, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_parameter (json_t *parent, hpd_parameter_id_t *parameter, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_parameters (json_t *parent, hpd_service_id_t *service, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_service (json_t *parent, hpd_service_id_t *service, hpd_rest_t *rest, const hpd_module_t *context)
 
static hpd_error_t rest_json_add_services (json_t *parent, hpd_device_id_t *device, hpd_rest_t *rest, const hpd_module_t *context)
 

Macro Definition Documentation

#define REST_JSON_RETURN_JSON_ERROR (   CONTEXT)    HPD_LOG_RETURN(context, HPD_E_UNKNOWN, "Json error")

Definition at line 33 of file rest_json.c.

Function Documentation

hpd_error_t hpd_rest_json_get_configuration ( hpd_t hpd,
hpd_rest_t rest,
const hpd_module_t context,
char **  out 
)

Definition at line 368 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_rest_json_get_value ( char *  value,
const hpd_module_t context,
char **  out 
)

Definition at line 390 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_rest_json_parse_value ( const char *  in,
const hpd_module_t context,
char **  out 
)

Definition at line 418 of file rest_json.c.

Here is the caller graph for this function:

static hpd_error_t rest_json_add ( json_t *  parent,
const char *  key,
const char *  val,
const hpd_module_t context 
)
static

Definition at line 35 of file rest_json.c.

Here is the caller graph for this function:

static hpd_error_t rest_json_add_adapter ( json_t *  parent,
hpd_adapter_id_t adapter,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 269 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_adapters ( json_t *  parent,
hpd_t hpd,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 305 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_attr ( json_t *  parent,
hpd_pair_t pair,
const hpd_module_t context 
)
static

Definition at line 47 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_configuration ( json_t *  parent,
hpd_t hpd,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 333 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_device ( json_t *  parent,
hpd_device_id_t device,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 206 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_devices ( json_t *  parent,
hpd_adapter_id_t adapter,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 241 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_parameter ( json_t *  parent,
hpd_parameter_id_t parameter,
const hpd_module_t context 
)
static

Definition at line 58 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_parameters ( json_t *  parent,
hpd_service_id_t service,
const hpd_module_t context 
)
static

Definition at line 90 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_service ( json_t *  parent,
hpd_service_id_t service,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 117 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t rest_json_add_services ( json_t *  parent,
hpd_device_id_t device,
hpd_rest_t rest,
const hpd_module_t context 
)
static

Definition at line 179 of file rest_json.c.

Here is the call graph for this function:

Here is the caller graph for this function: