summaryrefslogtreecommitdiffstats
path: root/src/polyp/operation.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-20 22:41:02 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-20 22:41:02 +0000
commit71b3bff6816b857a6a9613cc45b06f0b9e5a65e1 (patch)
treea9a7ed11a43b0069a04234b481a2466ccd7fc198 /src/polyp/operation.c
parent98cb6aa4a30a993ddf2c15f0a03cb4d94383d4d9 (diff)
* modify pa_context_exit_daemon() to return a pa_operation object
* add callback prototypes to all introspection functions in client lib * add proper validity checking and error handling to all functions in the client lib * other minor cleanups * todo update git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@531 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp/operation.c')
-rw-r--r--src/polyp/operation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/polyp/operation.c b/src/polyp/operation.c
index 5440cf9e..0216888c 100644
--- a/src/polyp/operation.c
+++ b/src/polyp/operation.c
@@ -31,7 +31,7 @@
#include "operation.h"
-pa_operation *pa_operation_new(pa_context *c, pa_stream *s) {
+pa_operation *pa_operation_new(pa_context *c, pa_stream *s, pa_operation_cb_t cb, void *userdata) {
pa_operation *o;
assert(c);
@@ -41,8 +41,8 @@ pa_operation *pa_operation_new(pa_context *c, pa_stream *s) {
o->stream = s ? pa_stream_ref(s) : NULL;
o->state = PA_OPERATION_RUNNING;
- o->userdata = NULL;
- o->callback = NULL;
+ o->callback = cb;
+ o->userdata = userdata;
PA_LLIST_PREPEND(pa_operation, o->context->operations, o);
return pa_operation_ref(o);