summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/common.h b/common.h
new file mode 100644
index 0000000..1ad624b
--- /dev/null
+++ b/common.h
@@ -0,0 +1,33 @@
+#ifndef COMMON_H_
+#define COMMON_H_
+
+#include <limits.h>
+#define PLAYLIST_END UINT_MAX
+#define SEGMENT_COUNT_UNLIMITED UINT_MAX
+
+enum State {
+ STATE_PAUSED,
+ STATE_PLAYING,
+ STATE_STANDBY,
+ STATE_TERM
+};
+
+struct Entry {
+ unsigned int id;
+ char *file;
+};
+
+struct StateInfo {
+ enum State state;
+ char *current_song;
+ int song_count;
+ struct Entry *next_songs;
+};
+
+struct StreamerOpt {
+ char *filename;
+};
+
+void stateinfo_free(struct StateInfo *state_info);
+
+#endif // COMMON_H_