50 size_t key_len,
size_t *data_len);
52 void *data,
size_t data_len);
54 size_t key_len,
void *data,
size_t data_len);
const char data[]
Make it with: gcc -o post-callback post-callback.c -lcurl.
Definition: post-callback.c:23
char * ksnTDBnamespaceGet(ksnTDBClass *kf)
Get current namespace.
Definition: src/modules/teodb.c:115
int ksnTDBsetNsStr(ksnTDBClass *kf, const char *ns, const char *key, void *data, size_t data_len)
Add (insert or update) data by string key to namespace.
Definition: src/modules/teodb.c:340
int ksnTDBdelete(ksnTDBClass *kf, const void *key, size_t key_len)
Delete all records with key.
Definition: src/modules/teodb.c:272
int ksnTDBdeleteNsStr(ksnTDBClass *kf, const char *ns, const char *key)
Delete all records with key.
Definition: src/modules/teodb.c:379
void ksnTDBnamespaceRemove(ksnTDBClass *kf, const char *ns)
Remove namespace and all it contains.
Definition: src/modules/teodb.c:126
int ksnTDBdeleteStr(ksnTDBClass *kf, const char *key)
Delete all records with string key.
Definition: src/modules/teodb.c:258
int ksnTDBset(ksnTDBClass *kf, const void *key, size_t key_len, void *data, size_t data_len)
Add (insert or update) data by key to default namespace.
Definition: src/modules/teodb.c:224
File: teodb.h Author: Kirill Scherba kirill@scherba.ru
Definition: teodb.h:18
int ksnTDBflush(ksnTDBClass *kf)
Flush a key file.
Definition: src/modules/teodb.c:139
int ksnTDBdeleteNs(ksnTDBClass *kf, const char *ns, const void *key, size_t key_len)
Delete all records with key.
Definition: src/modules/teodb.c:394
void ksnTDBnamespaceSet(ksnTDBClass *kf, const char *ns)
Set current namespace.
Definition: src/modules/teodb.c:74
void * ksnTDBgetNsStr(ksnTDBClass *kf, const char *ns, const char *key, size_t *data_len)
Get data by string key from namespace.
Definition: src/modules/teodb.c:300
char ** ksnet_stringArr
Definition: string_arr.h:11
int ksnTDBsetNs(ksnTDBClass *kf, const char *ns, const void *key, size_t key_len, void *data, size_t data_len)
Add (insert or update) data by key to namespace.
Definition: src/modules/teodb.c:358
int ksnTDBkeyList(ksnTDBClass *kf, const char *key, ksnet_stringArr *argv)
Get list of keys //.
Definition: src/modules/teodb.c:415
struct ksnTDBClass ksnTDBClass
File: teodb.h Author: Kirill Scherba kirill@scherba.ru
ksnTDBClass * ksnTDBinit(void *ke)
Initialize PBL KeyFile module.
Definition: src/modules/teodb.c:35
void ksnTDBdestroy(ksnTDBClass *kf)
Destroy PBL KeyFile module.
Definition: src/modules/teodb.c:50
pblKeyFile_t * k
Opened key file or NULL;.
Definition: teodb.h:22
int ksnTDBsetStr(ksnTDBClass *kf, const char *key, void *data, size_t data_len)
Add (insert or update) data by string key to default namespace.
Definition: src/modules/teodb.c:207
void * ksnTDBgetStr(ksnTDBClass *kf, const char *key, size_t *data_len)
Get data by string key from default namespace.
Definition: src/modules/teodb.c:153
void * ksnTDBget(ksnTDBClass *kf, const void *key, size_t key_len, size_t *data_len)
Get data by string key from default namespace.
Definition: src/modules/teodb.c:169
char * defNameSpace
Default namespace.
Definition: teodb.h:21
void * ksnTDBgetNs(ksnTDBClass *kf, const char *ns, const void *key, size_t key_len, size_t *data_len)
Get data by key from namespace.
Definition: src/modules/teodb.c:317
void * ke
Pointer to the ksnEvMgrClass.
Definition: teodb.h:20