9 #ifndef FORWARDER_MSG_QUEUE_H_ 10 #define FORWARDER_MSG_QUEUE_H_ 32 #define NDN_MSGQUEUE_SIZE 4096 106 #endif // #define FORWARDER_MSG_QUEUE_H_ struct ndn_msg * ndn_msgqueue_post(void *target, ndn_msg_callback reason, size_t param_length, void *param)
Post a message to the queue.
Definition: msg-queue.c:75
uint8_t param[]
Definition: msg-queue.c:32
void ndn_msgqueue_process(void)
Dispatch current messages.
Definition: msg-queue.c:128
Definition: msg-queue.c:28
void(* ndn_msg_callback)(void *self, size_t param_length, void *param)
The callback function of message.
Definition: msg-queue.h:44
bool ndn_msgqueue_dispatch(void)
Dispatch a message on the top of the queue.
Definition: msg-queue.c:65
bool ndn_msgqueue_empty(void)
Return if the messque queue is empty.
Definition: msg-queue.c:52
void ndn_msgqueue_init(void)
Init the message queue.
Definition: msg-queue.c:47
void ndn_msgqueue_cancel(struct ndn_msg *msg)
Cancel a posted message.
Definition: msg-queue.c:136