Ejemplo n.º 1
0
static void
channel_close (TpSvcChannel *iface,
               DBusGMethodInvocation *context)
{
  ExampleEchoChannel *self = EXAMPLE_ECHO_CHANNEL (iface);

  example_echo_channel_close (self);
  tp_svc_channel_return_from_close (context);
}
Ejemplo n.º 2
0
static void
channel_close (TpSvcChannel *iface,
               DBusGMethodInvocation *context)
{
  ExampleCallableMediaChannel *self = EXAMPLE_CALLABLE_MEDIA_CHANNEL (iface);

  example_callable_media_channel_close (self, self->group.self_handle,
      TP_CHANNEL_GROUP_CHANGE_REASON_NONE);
  tp_svc_channel_return_from_close (context);
}
static void
channel_close (TpSvcChannel *iface,
               DBusGMethodInvocation *context)
{
  TpTestsTextChannelGroup *self = TP_TESTS_TEXT_CHANNEL_GROUP (iface);

  if (!self->priv->closed)
    {
      self->priv->closed = TRUE;
      tp_svc_channel_emit_closed (self);
    }

  tp_svc_channel_return_from_close (context);
}