73 size_t * valueLengthPtr );
ksnCQueClass * kq
Pointer to ksnCQueClass.
Definition: cque.h:42
PblMap * cque_map
Pointer to the callback queue pblMap.
Definition: cque.h:22
uint32_t id
New callback queue ID.
Definition: cque.h:21
uint32_t id
Callback ID (equal to key)
Definition: cque.h:44
const char data[]
Make it with: gcc -o post-callback post-callback.c -lcurl.
Definition: post-callback.c:23
ev_timer w
Timeout watcher.
Definition: cque.h:47
double timeout
Timeout value.
Definition: cque.h:43
void * ksnCQueGetData(ksnCQueClass *kq, uint32_t id)
Get callback queue data.
Definition: cque.c:200
void * data
User data.
Definition: cque.h:46
uint8_t event_f
Send cque event if true.
Definition: cque.h:23
int ksnCQueRemove(ksnCQueClass *kq, uint32_t id)
Remove callback from queue.
Definition: cque.c:147
void * ksnCQueFindData(ksnCQueClass *kq, void *find, ksnCQueCompare compare, size_t *key_length)
Find data in CQue.
Definition: cque.c:301
ksnCQue Class structure definition
Definition: cque.h:18
void(* ksnCQueCallback)(uint32_t id, int type, void *data)
ksnCQue callback function definition
Definition: cque.h:34
void * ke
Pointer to ksnEvMgrClass.
Definition: cque.h:20
void * pblMapRemoveFree(PblMap *map, void *key, size_t keyLength, size_t *valueLengthPtr)
Removes the mapping for this key from this map if it is present.
Definition: cque.c:333
int ksnCQueSetData(ksnCQueClass *kq, uint32_t id, void *data)
Set callback queue data, update data set in ksnCQueAdd.
Definition: cque.c:178
void ksnCQueDestroy(ksnCQueClass *kq)
Destroy ksnCQue module class.
Definition: cque.c:88
ksnCQueData * ksnCQueAdd(ksnCQueClass *kq, ksnCQueCallback cb, double timeout, void *data)
Add callback to queue.
Definition: cque.c:260
ksnCQueCallback cb
Pointer to callback function.
Definition: cque.h:41
ksnCQueClass * ksnCQueInit(void *ke, uint8_t send_event)
Initialize ksnCQue module class.
Definition: cque.c:43
ksnCQue data structure
Definition: cque.h:39
int ksnCQueExec(ksnCQueClass *kq, uint32_t id)
Execute callback queue record.
Definition: cque.c:106
struct ksnCQueData ksnCQueData
ksnCQue data structure
struct ksnCQueClass ksnCQueClass
ksnCQue Class structure definition
int(* ksnCQueCompare)(void *find, void *data)
Find data in CQueue callback function.
Definition: cque.h:54