fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
queue.h
Go to the documentation of this file.
1
3#ifndef FPLAYER_QUEUE_H
4#define FPLAYER_QUEUE_H
5
8struct qentry_s {
9 const char* seqfp;
10 const char* audiofp;
11 const char* cmapfp;
12 unsigned int waitsec;
13};
14
17struct q_s;
18
22int Q_init(struct q_s** q);
23
30int Q_append(struct q_s* q, struct qentry_s ent);
31
36int Q_next(struct q_s* q, struct qentry_s* ent);
37
40void Q_free(struct q_s* q);
41
42#endif//FPLAYER_QUEUE_H
int Q_init(struct q_s **q)
Allocates and initializes a new queue instance.
Definition queue.c:16
int Q_append(struct q_s *q, struct qentry_s ent)
Appends a new entry to the end of the queue.
Definition queue.c:23
void Q_free(struct q_s *q)
Frees the memory allocated for the queue instance and all of its remaining entries.
Definition queue.c:49
int Q_next(struct q_s *q, struct qentry_s *ent)
Gets the next entry from the queue and removes it from the queue.
Definition queue.c:37
Queue structure for managing playback requests.
Definition queue.c:10
Queue entry structure that holds playback configuration data.
Definition queue.h:8
const char * seqfp
Sequence file path.
Definition queue.h:9
const char * cmapfp
Channel map file path.
Definition queue.h:11
const char * audiofp
Audio override file path.
Definition queue.h:10
unsigned int waitsec
Playback start delay in seconds.
Definition queue.h:12