diff options
author | ben <benjaminfranzke@googlemail.com> | 2010-07-12 11:24:25 +0200 |
---|---|---|
committer | ben <benjaminfranzke@googlemail.com> | 2010-07-12 11:24:25 +0200 |
commit | 56c5f9340057766c66a7814ab71c111eb0d83cdb (patch) | |
tree | 741b32f74fb68a0073ebb0b28bff4a27ced21fec /src/sink_input.h | |
parent | f4d6dba742eda3b32d9140d606b2a5d54bc34d38 (diff) | |
download | pa-sink-ctl-56c5f9340057766c66a7814ab71c111eb0d83cdb.tar.gz pa-sink-ctl-56c5f9340057766c66a7814ab71c111eb0d83cdb.tar.bz2 pa-sink-ctl-56c5f9340057766c66a7814ab71c111eb0d83cdb.zip |
move sources to src/
Diffstat (limited to 'src/sink_input.h')
-rw-r--r-- | src/sink_input.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/sink_input.h b/src/sink_input.h new file mode 100644 index 0000000..d16924c --- /dev/null +++ b/src/sink_input.h @@ -0,0 +1,25 @@ +#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*); + +sink_input_info** sink_input_list_init(int); +void sink_input_list_enlarge(sink_input_info**, int*, int); +void sink_input_list_clear(sink_input_info**, int*); +void sink_input_check(sink_input_info**); +int cmp_sink_input_list(const void *, const void *); + +#endif |