![]() |
SolarCapture C Bindings User Guide
SF-115721-CD
Issue 3
|
sc_packet_list: A list of packets. More...
Data Structures | |
| struct | sc_packet_list |
| A list of packets or packet buffers. More... | |
Functions | |
| static void | sc_packet_list_init (struct sc_packet_list *l) |
| Initialise a list. More... | |
| static int | sc_packet_list_is_empty (const struct sc_packet_list *l) |
| Check if packet list is empty. More... | |
| static void | sc_packet_list_finalise (struct sc_packet_list *l) |
| Finalise a list. More... | |
| static struct sc_packet * | sc_packet_list_tail (struct sc_packet_list *l) |
| Return the tail of current tail of the list. More... | |
| static void | sc_packet_list_push_head (struct sc_packet_list *pl, struct sc_packet *p) |
| Push a packet to the head of a list. More... | |
| static void | sc_packet_list_append (struct sc_packet_list *l, struct sc_packet *p) |
| Append a packet to a list and finalise. More... | |
| static void | sc_packet_list_append_list (struct sc_packet_list *dest, struct sc_packet_list *src) |
| Append a list to a list. More... | |
| static struct sc_packet * | sc_packet_list_pop_head (struct sc_packet_list *pl) |
| Remove and return the head of the list. More... | |
sc_packet_list: A list of packets.
|
inlinestatic |
Append a packet to a list and finalise.
| l | The packet list. |
| p | The packet. |
|
inlinestatic |
Append a list to a list.
| dest | The list to be extended. |
| src | The list to be appended to dest. |
After this call dest is finalised if and only if src was finalised.
src must be non-empty.
|
inlinestatic |
Finalise a list.
| l | The packet list. |
If a list is not finalised, it is possible that the next pointer of tail is not NULL.
|
inlinestatic |
Initialise a list.
| l | The packet list. |
|
inlinestatic |
Check if packet list is empty.
| l | The packet list. |
|
static |
Remove and return the head of the list.
| pl | The packet list. |
This must only be invoked on a non-empty list.
|
inlinestatic |
Push a packet to the head of a list.
| pl | The packet list. |
| p | The packet. |
|
static |
Return the tail of current tail of the list.
| l | The packet list. |