Exemplo n.º 1
0
    static void
destroyable_destroy (TpSvcChannelInterfaceDestroyable *iface,
        DBusGMethodInvocation *context)
{
    TpBaseChannel *self = TP_BASE_CHANNEL (iface);

    tp_message_mixin_clear ((GObject *) self);
    fetion_im_channel_close (self);
    g_assert (tp_base_channel_is_destroyed (self));
    tp_svc_channel_interface_destroyable_return_from_destroy (context);
}
Exemplo n.º 2
0
static void
destroyable_destroy (TpSvcChannelInterfaceDestroyable *iface,
                     DBusGMethodInvocation *context)
{
  ExampleEchoChannel *self = EXAMPLE_ECHO_CHANNEL (iface);

  tp_text_mixin_clear ((GObject *) self);
  example_echo_channel_close (self);
  g_assert (self->priv->closed);
  tp_svc_channel_interface_destroyable_return_from_destroy (context);
}