summaryrefslogtreecommitdiffstats
path: root/src/iochannel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-11 21:30:16 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-11 21:30:16 +0000
commit7dfeb1fc745757f1c2b7bf43bae80cf0f49fc9a6 (patch)
tree2876784e67ed6cf3974e7b06771835a8a4162979 /src/iochannel.c
parentaae40dcea260296d7d02d185b42f9275f34cb238 (diff)
make the whole stuff run and clean it self up again
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@8 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/iochannel.c')
-rw-r--r--src/iochannel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/iochannel.c b/src/iochannel.c
index db9717a9..aa7de714 100644
--- a/src/iochannel.c
+++ b/src/iochannel.c
@@ -156,3 +156,9 @@ ssize_t iochannel_read(struct iochannel*io, void*data, size_t l) {
return r;
}
+
+void iochannel_set_callback(struct iochannel*io, void (*callback)(struct iochannel*io, void *userdata), void *userdata) {
+ assert(io);
+ io->callback = callback;
+ io->userdata = userdata;
+}