diff options
author | bbergeron <[email protected]> | 2024-04-03 17:32:01 -0400 |
---|---|---|
committer | bbergeron <[email protected]> | 2024-04-03 17:32:01 -0400 |
commit | c1cb78d574c0429aa5e3ff3a2b3886e4bc153212 (patch) | |
tree | bf68806bcbddcafafc015b28c25550ea457eeecc /common.h |
Reset Git repo and use a pseudonym to sign commits
I used to sign my commits with my real name and my personal email
address, which I wanted scrubbed off the "B." pseudosphere. Re-creating
a new git repository was safer than simpler than re-writing the
history (although the latter could've also worked but, oh well).
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 33 |
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_ |