diff options
author | Siraj Razick <siraj.razick@collabora.co.uk> | 2012-01-23 13:30:26 -0500 |
---|---|---|
committer | Siraj Razick <siraj.razick@collabora.co.uk> | 2012-02-01 14:48:43 -0500 |
commit | 25aa12dfeb6974425e5af8f74b9161d2e9a324ce (patch) | |
tree | 6395e49dea5f52304795636f70e3a016a75ce040 | |
parent | 3e1d4d08094fa6b9d7d8ecfe5e0495f0379e5f3a (diff) |
Plugin sidecar_finish method to match the plugin API change
-rw-r--r-- | plugin-base/ytstenut.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugin-base/ytstenut.c b/plugin-base/ytstenut.c index 965ca32..8a97080 100644 --- a/plugin-base/ytstenut.c +++ b/plugin-base/ytstenut.c @@ -130,6 +130,27 @@ ytstenut_plugin_create_sidecar_async ( g_object_unref (result); } +static GabbleSidecar * +ytstenut_plugin_create_sidecar_finish ( + GabblePlugin *plugin, + GAsyncResult *result, + GError **error) +{ + GabbleSidecar *sidecar; + + if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), + error)) + return NULL; + + g_return_val_if_fail (g_simple_async_result_is_valid (result, + G_OBJECT (plugin), ytstenut_plugin_create_sidecar_async), NULL); + + sidecar = GABBLE_SIDECAR (g_simple_async_result_get_op_res_gpointer ( + G_SIMPLE_ASYNC_RESULT (result))); + + return g_object_ref (sidecar); +} + static GPtrArray * ytstenut_plugin_create_channel_managers ( FooPlugin *plugin, @@ -166,6 +187,7 @@ plugin_iface_init (gpointer g_iface, iface->sidecar_interfaces = sidecar_interfaces; iface->create_sidecar_async = ytstenut_plugin_create_sidecar_async; + iface->create_sidecar_finish = ytstenut_plugin_create_sidecar_finish; iface->create_channel_managers = ytstenut_plugin_create_channel_managers; } |