lsm_rest.h File Reference
Go to the source code of this file.
Data Structures |
struct | Parameter |
struct | ParaList |
Defines |
#define | LSM_REST_PORT 8888 |
#define | LSM_REST_TMO 60000 |
#define | LSM_SOCK_BUFF_LEN 4096 |
#define | LSM_DEFAULT_ID 100 |
#define | LSM_JSON_MIME "application/json" |
#define | LSM_HEADER_LEN 10 |
#define | LSM_API_VER_LEN 4 |
#define | LSM_UDS_PATH_DEFAULT "/var/run/lsm/ipc" |
Typedefs |
typedef struct Parameter | Parameter_t |
typedef struct ParaList | ParaList_t |
Enumerations |
enum | lsm_json_type {
lsm_json_type_null,
lsm_json_type_int,
lsm_json_type_float,
lsm_json_type_string,
lsm_json_type_bool,
lsm_json_type_array_str
} |
Functions |
void | para_list_init (ParaList_t *) |
int | para_list_add (ParaList_t *, const char *, const void *, const enum lsm_json_type, const ssize_t) |
void | para_list_free (ParaList_t *) |
json_object * | para_to_json (const enum lsm_json_type, const void *, const ssize_t) |
json_object * | para_list_to_json (ParaList_t *) |
Define Documentation
#define LSM_API_VER_LEN 4 |
#define LSM_DEFAULT_ID 100 |
#define LSM_HEADER_LEN 10 |
#define LSM_JSON_MIME "application/json" |
#define LSM_REST_PORT 8888 |
#define LSM_REST_TMO 60000 |
#define LSM_SOCK_BUFF_LEN 4096 |
#define LSM_UDS_PATH_DEFAULT "/var/run/lsm/ipc" |
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
lsm_json_type_null |
|
lsm_json_type_int |
|
lsm_json_type_float |
|
lsm_json_type_string |
|
lsm_json_type_bool |
|
lsm_json_type_array_str |
|
Definition at line 35 of file lsm_rest.h.
Function Documentation
int para_list_add |
( |
ParaList_t * |
, |
|
|
const char * |
, |
|
|
const void * |
, |
|
|
const enum |
lsm_json_type, |
|
|
const |
ssize_t | |
|
) |
| | |
json_object* para_to_json |
( |
const enum |
lsm_json_type, |
|
|
const void * |
, |
|
|
const |
ssize_t | |
|
) |
| | |