![]() |
ndn-lite
|
Data Structures | |
struct | ndn_msg |
Macros | |
#define | NDN_MSG_PADDING (ndn_msg_callback)(-1) |
Padding message. More... | |
#define | MSGQUEUE_NEXT(ptr) |
Typedefs | |
typedef struct ndn_msg | ndn_msg_t |
Functions | |
void | ndn_msgqueue_init (void) |
Init the message queue. More... | |
bool | ndn_msgqueue_empty (void) |
Return if the messque queue is empty. More... | |
bool | ndn_msgqueue_dispatch (void) |
Dispatch a message on the top of the queue. More... | |
struct ndn_msg * | ndn_msgqueue_post (void *target, ndn_msg_callback reason, size_t param_length, void *param) |
Post a message to the queue. More... | |
void | ndn_msgqueue_process (void) |
Dispatch current messages. More... | |
void | ndn_msgqueue_cancel (struct ndn_msg *msg) |
Cancel a posted message. More... | |
Variables | |
static uint8_t | msg_queue [NDN_MSGQUEUE_SIZE] |
static ndn_msg_t * | pfront |
static ndn_msg_t * | ptail |
static ndn_msg_t * | psplit |
#define MSGQUEUE_NEXT | ( | ptr | ) |
#define NDN_MSG_PADDING (ndn_msg_callback)(-1) |
Padding message.
This will only occur at the end of the queue. When the last message's func
is NDN_MSG_PADDING, it means the next message is at the begining of the queue and has a size larger than this padding one.
|
static |
|
static |
|
static |
|
static |