ap

Queue manager meant to be used as an audio player
git clone git://jacobedwards.org/ap
Log | Files | Refs | README | LICENSE

player.h (492B)


      1 enum pstate {
      2 	OFF = 0,	/* must be false */
      3 	RUNNING = 1,
      4 	STOPPED = 2,
      5 	SUSPENDED = 4,
      6 	FAILURE = 8,
      7 	COMPLETE = 16
      8 };
      9 
     10 struct player {
     11 	char **argv;
     12 	int argc;
     13 	char *path;
     14 	enum pstate state;
     15 	pid_t pid;
     16 };
     17 
     18 int	pstart(struct player *);
     19 int	pstop(struct player *);
     20 int	psuspend(struct player *);
     21 int	pcontinue(struct player *);
     22 int	pplay(struct player *, char *);
     23 int	ptoggle(struct player *);
     24 void	pupdate(struct player *, int);
     25 void	pfree(struct player *);
     26 struct player	*pnew(char **);