#include "ks_config.h"
#include "ks_response.h"
#include "ks_bparse.h"
#include "ks_number.h"
#include <string.h>
Go to the source code of this file.
Functions | |
| ks_type_t * | ks_response_type (void) |
| ks_response_t * | ks_response_bparse (const char *data, int len) |
| void | ks_response_free (ks_response_t *e) |
| ks_string_t * | ks_response_error (ks_response_t *e) |
| ks_string_t * | ks_response_message (ks_response_t *e) |
| ks_string_t * | ks_response_id (ks_response_t *e) |
| long | ks_response_time (ks_response_t *e) |
| ks_assoc_t * | ks_response_combinations (ks_response_t *e) |
| ks_combination_t * | ks_response_combination (ks_response_t *e, const char *key) |
| int | ks_response_combinations_size (ks_response_t *e) |
| int | ks_response_facts_length (ks_response_t *e) |
| ks_fact_t * | ks_response_fact (ks_response_t *e, int idx) |
Definition in file ks_response.c.
|
||||||||||||
|
XXX Definition at line 90 of file ks_response.c. References _ks_response_t::error, ks_assoc_type(), ks_bparse(), KS_CAST, ks_error(), ks_string_type(), _ks_type_t::name, _ks_response_t::response, and _ks_base_t::type. |
|
||||||||||||
|
Get a specific combination result from ks_response_t (e).
Definition at line 250 of file ks_response.c. References ks_assoc_get(), KS_CAST, and ks_response_combinations(). |
|
|
Get all the combinations in ks_response_t (e)
Definition at line 226 of file ks_response.c. References ks_assoc_get(), KS_CAST, and _ks_response_t::response. Referenced by ks_response_combination(), and ks_response_combinations_size(). |
|
|
Get the number of combinations contained in ks_response_t (e)
Definition at line 271 of file ks_response.c. References ks_assoc_size(), and ks_response_combinations(). |
|
|
Returns the error string contained in the ks_response_t (e), which must not be NULL, and must point to a valid ks_response_t structure.
Definition at line 140 of file ks_response.c. References _ks_response_t::error, ks_assoc_get(), ks_response_message(), ks_string_new(), and _ks_response_t::response. |
|
||||||||||||
|
Get a specific fact contained in ks_response_t (e)
Definition at line 325 of file ks_response.c. References ks_array_get(). |
|
|
Get the number of facts contained in ks_response_t (e)
Definition at line 308 of file ks_response.c. References ks_array_length(). |
|
|
Destroy a given ks_response_t and free all memory that has been allocated for it and any elements it contains.
Definition at line 123 of file ks_response.c. References _ks_response_t::error, ks_assoc_free(), ks_free(), ks_string_free(), and _ks_response_t::response. Referenced by main(). |
|
|
Get the response id of ks_response_t (e).
Definition at line 184 of file ks_response.c. References ks_assoc_get(), KS_CAST, and _ks_response_t::response. Referenced by ks_socket_recv(). |
|
|
Returns the message string contained in the ks_response_t (e)
Definition at line 169 of file ks_response.c. References ks_assoc_get(), KS_CAST, and _ks_response_t::response. Referenced by ks_response_error(). |
|
|
Get the query time from ks_response_t (e)
Definition at line 203 of file ks_response.c. References ks_assoc_get(), KS_CAST, ks_number_get(), and _ks_response_t::response. |
|
|
Get the metaclass for ks_response_t objects.
Definition at line 65 of file ks_response.c. |
1.4.4