fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
|
Playback queue interface. More...
Go to the source code of this file.
Data Structures | |
struct | qentry_s |
Queue entry structure that holds playback configuration data. More... | |
Functions | |
int | Q_init (struct q_s **q) |
Allocates and initializes a new queue instance. | |
int | Q_append (struct q_s *q, struct qentry_s ent) |
Appends a new entry to the end of the queue. | |
int | Q_next (struct q_s *q, struct qentry_s *ent) |
Gets the next entry from the queue and removes it from the queue. | |
void | Q_free (struct q_s *q) |
Frees the memory allocated for the queue instance and all of its remaining entries. | |
Playback queue interface.
Appends a new entry to the end of the queue.
q | queue instance to add the entry to |
ent | entry to add to the queue, string pointers are copied but not the strings themselves, the caller is responsible for managing the memory of the strings to ensure they are valid for the lifetime of the queue |
void Q_free | ( | struct q_s * | q | ) |
Frees the memory allocated for the queue instance and all of its remaining entries.
int Q_init | ( | struct q_s ** | q | ) |
Allocates and initializes a new queue instance.
q | return pointer to the new queue instance |