summaryrefslogtreecommitdiff
path: root/common.h
blob: 1ad624ba281ed04ca2ee5f3c7d447fa401b41628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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_