commotion.h
Go to the documentation of this file.
114 int co_call(co_obj_t *connection, co_obj_t **response, const char *method, const size_t mlen, co_obj_t *request);
131 size_t co_response_get_str(co_obj_t *response, char **output, const char *key, const size_t klen);
140 size_t co_response_get_bin(co_obj_t *response, char **output, const char *key, const size_t klen);
149 int co_response_get_uint(co_obj_t *response, unsigned long *output, const char *key, const size_t klen);
158 int co_response_get_int(co_obj_t *response, signed long *output, const char *key, const size_t klen);
int co_request_append_bin(co_obj_t *request, const char *s, const size_t slen)
appends byte array to request
Definition: commotion.c:144
int co_response_get_bool(co_obj_t *response, bool *output, const char *key, const size_t klen)
retrieve bool from response
Definition: commotion.c:331
co_obj_t * co_request_create(void)
create an API request
Definition: commotion.c:113
int co_response_print(co_obj_t *response)
print response object
Definition: commotion.c:353
int co_request_append(co_obj_t *request, co_obj_t *object)
appends object to request
Definition: commotion.c:119
size_t co_response_get_bin(co_obj_t *response, char **output, const char *key, const size_t klen)
retrieve byte array from response
Definition: commotion.c:262
int co_call(co_obj_t *connection, co_obj_t **response, const char *method, const size_t mlen, co_obj_t *request)
sense procedure call to daemon
Definition: commotion.c:186
int co_request_append_int(co_obj_t *request, const int i)
appends int to request
Definition: commotion.c:158
size_t co_response_get_str(co_obj_t *response, char **output, const char *key, const size_t klen)
retrieve string from response
Definition: commotion.c:251
Definition: obj.h:131
int co_response_get_int(co_obj_t *response, signed long *output, const char *key, const size_t klen)
retrieve signed int from response
Definition: commotion.c:302
co_obj_t * co_connect(const char *uri, const size_t ulen)
creates a connection to Commotion daemon at the given URI
Definition: commotion.c:84
int co_response_get_uint(co_obj_t *response, unsigned long *output, const char *key, const size_t klen)
retrieve unsigned int from response
Definition: commotion.c:273
int co_request_append_str(co_obj_t *request, const char *s, const size_t slen)
appends string to request
Definition: commotion.c:130
co_obj_t * co_response_get(co_obj_t *response, const char *key, const size_t klen)
retrieve object from response
Definition: commotion.c:241
int co_request_append_uint(co_obj_t *request, const unsigned int i)
appends unsigned int to request
Definition: commotion.c:172
int co_disconnect(co_obj_t *connection)
closes connection to Commotion daemon
Definition: commotion.c:99
Generated on Fri Jun 6 2014 13:22:05 for commotiond by 1.8.7