fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
|
Frame data block list utility functions. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | fd_list_s |
Represents a list of frame data blocks. More... | |
struct | fd_node_s |
Represents a node in a list of frame data blocks. More... | |
Functions | |
void | FD_free (struct fd_list_s *list) |
Frees all entry nodes in the list, but does not free the list itself. | |
struct fd_node_s * | FD_shift (struct fd_list_s *list) |
Returns the first node in the list and removes it for consumption by the caller. The caller is responsible for freeing the returned node. | |
int | FD_append (struct fd_list_s *list, uint8_t *frame) |
Appends a new frame data block to the end of the list. The frame data provided is not copied, so the caller is responsible for ensuring the memory remains valid until the frame data block is freed. | |
Frame data block list utility functions.
int FD_append | ( | struct fd_list_s * | list, |
uint8_t * | frame ) |
Appends a new frame data block to the end of the list. The frame data provided is not copied, so the caller is responsible for ensuring the memory remains valid until the frame data block is freed.
list | pointer to the list structure, must be non-NULL and zero initialized |
frame | frame data to append |
void FD_free | ( | struct fd_list_s * | list | ) |
Frees all entry nodes in the list, but does not free the list itself.
list | pointer to the list structure to free |
Returns the first node in the list and removes it for consumption by the caller. The caller is responsible for freeing the returned node.
list | pointer to the list structure, must be non-NULL and zero initialized |