summaryrefslogtreecommitdiff
path: root/src/sink_input.h
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-15 00:56:50 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-15 00:56:50 +0200
commitc0aa6a50753ab4bfbe7e1f1fe7e823d65453279a (patch)
treed7f2c01a56fa340b87f36beb811c930233f1f896 /src/sink_input.h
parent8b28bf9e4c0dc7ee03b0187a65a02783a92b4b2a (diff)
downloadpa-sink-ctl-c0aa6a50753ab4bfbe7e1f1fe7e823d65453279a.tar.gz
pa-sink-ctl-c0aa6a50753ab4bfbe7e1f1fe7e823d65453279a.tar.bz2
pa-sink-ctl-c0aa6a50753ab4bfbe7e1f1fe7e823d65453279a.zip
replace sink_input_list implementation with GArray
Diffstat (limited to 'src/sink_input.h')
-rw-r--r--src/sink_input.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/sink_input.h b/src/sink_input.h
index 5a65992..2691afc 100644
--- a/src/sink_input.h
+++ b/src/sink_input.h
@@ -1,6 +1,9 @@
#ifndef SINK_INPUT_H
#define SINK_INPUT_H
+#include <stdint.h>
+
+#include <glib.h>
#include <pulse/pulseaudio.h>
// TODO: change this with the given define from pulselib
#define VOLUME_MAX UINT16_MAX
@@ -15,13 +18,7 @@ typedef struct _sink_input_info {
pa_volume_t vol; // TOTO: exchange with the channel-list
} sink_input_info;
-sink_input_info* sink_input_init(void);
-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 *);
+GArray *sink_input_list_alloc(void);
+void sink_input_list_free(GArray *sink_input_list);
#endif