ap

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

aps.h (860B)


      1 #include <ap/ap.h>
      2 
      3 struct aps;
      4 
      5 #include "player.h"
      6 
      7 struct client {
      8 	struct buf *request, *response;
      9 };
     10 
     11 struct aps {
     12 	int close;
     13 	int logmask;
     14 	int nfds;
     15 	int syslog;
     16 	int timeout;
     17 	struct apcon *con;
     18 	struct client clients[OPEN_MAX];
     19 	struct command *coms;
     20 	struct item *queue;
     21 	struct player *player;
     22 	struct pollfd pfds[OPEN_MAX];
     23 	unsigned int ncoms;
     24 };
     25 
     26 struct aps	*aps_open(char *, char **);
     27 void	aps_close(struct aps *);
     28 int	aps_drop(struct aps *, int);
     29 int	aps_accept(struct aps *);
     30 int	aps_respond(struct aps *, int);
     31 int	aps_handle(struct aps *, int);
     32 int	aps_named(struct aps *);
     33 int	aps_update(struct aps *);
     34 int	aps_read(struct aps *, int, char **);
     35 int	aps_command(struct aps *, int);
     36 void	aps_errordrop(struct aps *, int, char *);
     37 char	*aps_seek(struct aps *, char *);
     38 int	aps_play(struct aps *, struct item *);
     39 int	aps_unname(struct aps *);