lsm_rest.h File Reference

This graph shows which files directly or indirectly include this file:

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

Definition at line 32 of file lsm_rest.h.

#define LSM_DEFAULT_ID   100

Definition at line 29 of file lsm_rest.h.

#define LSM_HEADER_LEN   10

Definition at line 31 of file lsm_rest.h.

#define LSM_JSON_MIME   "application/json"

Definition at line 30 of file lsm_rest.h.

#define LSM_REST_PORT   8888

Definition at line 26 of file lsm_rest.h.

#define LSM_REST_TMO   60000

Definition at line 27 of file lsm_rest.h.

#define LSM_SOCK_BUFF_LEN   4096

Definition at line 28 of file lsm_rest.h.

#define LSM_UDS_PATH_DEFAULT   "/var/run/lsm/ipc"

Definition at line 33 of file lsm_rest.h.


Typedef Documentation

typedef struct ParaList ParaList_t
typedef struct Parameter Parameter_t

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 
)

Definition at line 47 of file lsm_rest.c.

void para_list_free ( ParaList_t  ) 

Definition at line 71 of file lsm_rest.c.

void para_list_init ( ParaList_t  ) 

Definition at line 42 of file lsm_rest.c.

json_object* para_list_to_json ( ParaList_t  ) 

Definition at line 128 of file lsm_rest.c.

Here is the call graph for this function:

json_object* para_to_json ( const enum  lsm_json_type,
const void *  ,
const   ssize_t 
)

Definition at line 91 of file lsm_rest.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 9 Jul 2015 for libStorageMgmt by  doxygen 1.6.1