diff options
author | Jan Klemkow <web2p10@wemelug.de> | 2010-07-08 22:29:00 +0200 |
---|---|---|
committer | Jan Klemkow <web2p10@wemelug.de> | 2010-07-08 22:29:00 +0200 |
commit | 1d09ceecefe1a9a18addf2f9a42294075bc190c2 (patch) | |
tree | 6e7c6da7baf10a30562371dcc4faa34cf9c62895 /sink_input.h | |
parent | 4ed3f983f9609ee6b1b3ce20053b31e62ddb2a1f (diff) | |
download | pa-sink-ctl-1d09ceecefe1a9a18addf2f9a42294075bc190c2.tar.gz pa-sink-ctl-1d09ceecefe1a9a18addf2f9a42294075bc190c2.tar.bz2 pa-sink-ctl-1d09ceecefe1a9a18addf2f9a42294075bc190c2.zip |
splitting project into seperat files
Diffstat (limited to 'sink_input.h')
-rw-r--r-- | sink_input.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sink_input.h b/sink_input.h new file mode 100644 index 0000000..e426cf7 --- /dev/null +++ b/sink_input.h @@ -0,0 +1,23 @@ +#ifndef SINK_INPUT_H +#define SINK_INPUT_H + +#include <pulse/pulseaudio.h> +// TODO: change this with the given define from pulselib +#define VOLUME_MAX UINT16_MAX + +typedef struct _sink_input_info { + uint32_t index; + uint32_t sink; + char *name; + char *pid; // maybe useless?!!? + pa_volume_t vol; // TOTO: exchange with the channel-list +} sink_input_info; + +sink_input_info* sink_input_init(); +void sink_input_clear(sink_input_info*); + +void sink_input_list_init(sink_input_info**, int); +void sink_input_list_clear(sink_input_info**, int*); +int cmp_sink_input_list(const void *, const void *); + +#endif |