summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-02-24 08:59:42 -0800
committerTravis Reitter <treitter@gmail.com>2010-02-25 07:59:26 -0800
commit11e8fd5bfb68347baf7f809089c78ade0eb7f79d (patch)
tree2a96df4bf93a2df0a6f1fbcb5c0b357646437f61 /tests
parent6b7168d92c97211eeae7fb432b2cbea4edf5bf97 (diff)
Extend the TplActionChain API to support passing arbitrary data to the chained functions.
Diffstat (limited to 'tests')
-rw-r--r--tests/tpl-channel-test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/tpl-channel-test.c b/tests/tpl-channel-test.c
index 31080a1..e87c154 100644
--- a/tests/tpl-channel-test.c
+++ b/tests/tpl-channel-test.c
@@ -32,7 +32,8 @@
static void call_when_ready_wrapper (TplChannel *tpl_chan, GAsyncReadyCallback
cb, gpointer user_data);
-static void pendingproc_prepare_tpl_channel (TplActionChain *ctx);
+static void pendingproc_prepare_tpl_channel (TplActionChain *ctx,
+ gpointer user_data);
static void got_tpl_chan_ready_cb (GObject *obj, GAsyncResult *result,
gpointer user_data);
@@ -133,14 +134,15 @@ tpl_channel_test_call_when_ready (TplChannelTest *self,
* are unreferenced by g_object_unref: after the order change, it might
* happend that an object still has to be created after the change */
actions = tpl_actionchain_new (G_OBJECT (self), cb, user_data);
- tpl_actionchain_append (actions, pendingproc_prepare_tpl_channel);
+ tpl_actionchain_append (actions, pendingproc_prepare_tpl_channel, NULL);
/* start the queue consuming */
tpl_actionchain_continue (actions);
}
static void
-pendingproc_prepare_tpl_channel (TplActionChain *ctx)
+pendingproc_prepare_tpl_channel (TplActionChain *ctx,
+ gpointer user_data)
{
TplChannel *tpl_chan = TPL_CHANNEL (tpl_actionchain_get_object (ctx));