Teonet library
0.4.7
|
Functions | |
teo_db_data * | prepare_request_data (const void *key, size_t key_len, const void *data, size_t data_len, uint32_t id, size_t *tdd_len) |
Prepare teonet db data. More... | |
teo_db_data* prepare_request_data | ( | const void * | key, |
size_t | key_len, | ||
const void * | data, | ||
size_t | data_len, | ||
uint32_t | id, | ||
size_t * | tdd_len | ||
) |
Prepare teonet db data.
key | Key |
key_len | Key length |
data | Pointer to value |
data_len | Value length |
id | Request ID |
tdd_len | Pointer to variable to hold result packet length |
References teo_db_data::data_length, teo_db_data::id, teo_db_data::key_data, teo_db_data::key_length, and malloc().
Referenced by event_cb(), get_cb(), and teo::Teonet::TeoDB::prepareRequest().