fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
fd.h
Go to the documentation of this file.
1
3#ifndef FPLAYER_FD_H
4#define FPLAYER_FD_H
5
6#include <stdint.h>
7
10struct fd_list_s {
11 struct fd_node_s* head;
12 struct fd_node_s* tail;
13 int count;
14};
15
18struct fd_node_s {
19 uint8_t* frame;
20 struct fd_node_s* next;
21};
22
25void FD_free(struct fd_list_s* list);
26
31struct fd_node_s* FD_shift(struct fd_list_s* list);
32
39int FD_append(struct fd_list_s* list, uint8_t* frame);
40
41#endif//FPLAYER_FD_H
void FD_free(struct fd_list_s *list)
Frees all entry nodes in the list, but does not free the list itself.
Definition fd.c:10
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 respon...
Definition fd.c:21
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,...
Definition fd.c:32
Represents a list of frame data blocks.
Definition fd.h:10
struct fd_node_s * tail
Last node in the list.
Definition fd.h:12
int count
Number of nodes in the list.
Definition fd.h:13
struct fd_node_s * head
First node in the list.
Definition fd.h:11
Represents a node in a list of frame data blocks.
Definition fd.h:18
struct fd_node_s * next
Next node in the list.
Definition fd.h:20
uint8_t * frame
Frame data block.
Definition fd.h:19