playlist.h 505 B

1234567891011121314151617181920212223242526
  1. typedef struct Playlistentry {
  2. char *file;
  3. char *onum;
  4. } Playlistentry;
  5. typedef struct Playlist {
  6. QLock;
  7. int nentries;
  8. int selected;
  9. Playlistentry *entry;
  10. } Playlist;
  11. extern Playlist playlist;
  12. extern char *playctlfile;
  13. extern char *srvmount;
  14. extern int playctlfd;
  15. void playctlproc(void*a);
  16. void playlistproc(void*);
  17. void playvolproc(void*a);
  18. void sendplayctl(char *fmt, ...);
  19. void sendplaylist(char*, char*);
  20. void setvolume(char *volume);
  21. void updateplaylist(int);
  22. void volumeproc(void *arg);