X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod.h;h=ca22160d3fa378bd1849cb16549b85a6b409c254;hp=234c67a0d9eb9d09643544a498d96e5be5d69093;hb=c03bc512fc733c05292225cf878f14e41d1d59c9;hpb=3392bf543022cae60dad0ed76486b574a76b1d66 diff --git a/audiod.h b/audiod.h index 234c67a0..ca22160d 100644 --- a/audiod.h +++ b/audiod.h @@ -1,4 +1,12 @@ +/* + * Copyright (C) 2006-2007 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + /** \file audiod.h symbols exported from audiod.c */ + + int num_filters(int audio_format_num); int get_audio_format_num(char *name); @@ -17,15 +25,35 @@ extern const char *audio_formats[]; * - off: disconnect from para_server * - on: receive status information from para_server and play the audio stream * - sb: only receive status information but not the audio stream -*/ -enum {AUDIOD_OFF, AUDIOD_ON, AUDIOD_STANDBY}; + */ +enum audiod_status_info {AUDIOD_OFF, AUDIOD_ON, AUDIOD_STANDBY}; + +/** defines one command of para_audiod */ +struct audiod_command { + /** the name of the command */ + const char *name; + /** pointer to the function that handles the command */ + int (*handler)(int, int, char**); + /** + * if the command prefers to handle the full line (rather than the usual + * argv[] array), it stores a pointer to the corresponding line handling + * function here. In this case, the above \a handler pointer must be NULL. + */ + int (*line_handler)(int, char*); + /** one-line description of the command */ + const char *description; + /** summary of the command line options */ + const char *usage; + /** the long help text */ + const char *help; +}; /** * describes one instance of a receiver-filter-writer chain * - * \sa receier_node, receiver, filter, filter_node, filter_chain, writer, + * \sa receiver_node, receiver, filter, filter_node, filter_chain, writer, * writer_node, writer_node_group. - */ + */ struct slot_info { /** number of the audio format in this slot */ int format; @@ -39,16 +67,6 @@ struct slot_info { struct writer_node_group *wng; }; -/** - * the main task of audiod - * - * \sa struct task, struct sched - */ -struct audiod_task { - struct timeval *now; - struct task task; -}; - /** * the task for obtaining para_server's status (para_client stat) *