diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2009-01-18 17:15:16 +1100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-02-03 10:07:19 +0000 |
commit | 0e331be88d62f30ddc0333107a6281babb0164c5 (patch) | |
tree | 3f91a54516bd4198ddf56cb6125bd884536f52b7 /src/tube-dbus.c | |
parent | 6d4b38c1509c7c65ea183075730005c36386b9ac (diff) |
Implementation Channel.Type.DBusTube.OfferDBusTube()
Diffstat (limited to 'src/tube-dbus.c')
-rw-r--r-- | src/tube-dbus.c | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/src/tube-dbus.c b/src/tube-dbus.c index 99f88454b..68396d040 100644 --- a/src/tube-dbus.c +++ b/src/tube-dbus.c @@ -1693,6 +1693,31 @@ gabble_tube_dbus_get_interfaces (TpSvcChannel *iface, } } +/** + * gabble_tube_dbus_offer_d_bus_tube + * + * Implemnets D-Bus method OfferDBusTube on interface + * org.freedesktop.Telepathy.Channel.Type.DBusTube + */ +static void +gabble_tube_dbus_offer_d_bus_tube (GabbleSvcChannelTypeDBusTube *self, + DBusGMethodInvocation *context) +{ + GabbleTubeDBus *tube = GABBLE_TUBE_DBUS (self); + GError *error = NULL; + + if (gabble_tube_dbus_offer (tube, &error)) + { + gabble_svc_channel_type_dbus_tube_return_from_offer_d_bus_tube (context); + } + else + { + g_assert (error != NULL); + dbus_g_method_return_error (context, error); + g_error_free (error); + } +} + static void channel_iface_init (gpointer g_iface, gpointer iface_data) @@ -1723,16 +1748,12 @@ static void dbustube_iface_init (gpointer g_iface, gpointer iface_data) { - /* GabbleSvcChannelTypeDBusTubeClass *klass = (GabbleSvcChannelTypeDBusTubeClass *) g_iface; - */ #define IMPLEMENT(x) gabble_svc_channel_type_dbus_tube_implement_##x (\ klass, gabble_tube_dbus_##x) - /* - IMPLEMENT(offer_stream_tube); - IMPLEMENT(accept_stream_tube); - */ + IMPLEMENT(offer_d_bus_tube); +/*IMPLEMENT(accept_d_bus_tube);*/ #undef IMPLEMENT } |