Tube channels

Tube channels — service-side interface for the Tube channel interface, StreamTube channel type and DBusTube channel type.

Functions

Signals

void tube-channel-state-changed Has Details
void connection-closed Has Details
void new-local-connection Has Details
void new-remote-connection Has Details
void d-bus-names-changed Has Details

Types and Values

Object Hierarchy

    GInterface
    ├── TpSvcChannelInterfaceTube1
    ├── TpSvcChannelTypeDBusTube1
    ╰── TpSvcChannelTypeStreamTube1

Includes

#include <telepathy-glib/telepathy-glib-dbus.h>

Description

A "tube" is a mechanism for arbitrary data transfer. This section documents the auto-generated C wrappers for the Tube channel interface, StreamTube channel type and DBusTube channel type.

Functions

tp_svc_channel_interface_tube1_emit_tube_channel_state_changed ()

void
tp_svc_channel_interface_tube1_emit_tube_channel_state_changed
                               (gpointer instance,
                                guint arg_State);

Type-safe wrapper around g_signal_emit to emit the TubeChannelStateChanged signal on interface im.telepathy.v1.Channel.Interface.Tube1.

Parameters

instance

The object implementing this interface

 

arg_State

guint (FIXME, generate documentation)

 

tp_svc_channel_type_stream_tube1_offer_impl ()

void
(*tp_svc_channel_type_stream_tube1_offer_impl)
                               (TpSvcChannelTypeStreamTube1 *self,
                                guint in_address_type,
                                const GValue *in_address,
                                guint in_access_control,
                                GHashTable *in_parameters,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method Offer on interface im.telepathy.v1.Channel.Type.StreamTube1.

Parameters

self

The object implementing this interface

 

in_address_type

guint (FIXME, generate documentation)

 

in_address

const GValue * (FIXME, generate documentation)

 

in_access_control

guint (FIXME, generate documentation)

 

in_parameters

GHashTable * (FIXME, generate documentation)

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_stream_tube1_implement_offer ()

void
tp_svc_channel_type_stream_tube1_implement_offer
                               (TpSvcChannelTypeStreamTube1Class *klass,
                                tp_svc_channel_type_stream_tube1_offer_impl impl);

Register an implementation for the Offer method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the Offer D-Bus method

 

tp_svc_channel_type_stream_tube1_return_from_offer ()

void
tp_svc_channel_type_stream_tube1_return_from_offer
                               (GDBusMethodInvocation *invocation);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

tp_svc_channel_type_stream_tube1_accept_impl ()

void
(*tp_svc_channel_type_stream_tube1_accept_impl)
                               (TpSvcChannelTypeStreamTube1 *self,
                                guint in_address_type,
                                guint in_access_control,
                                const GValue *in_access_control_param,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method Accept on interface im.telepathy.v1.Channel.Type.StreamTube1.

Parameters

self

The object implementing this interface

 

in_address_type

guint (FIXME, generate documentation)

 

in_access_control

guint (FIXME, generate documentation)

 

in_access_control_param

const GValue * (FIXME, generate documentation)

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_stream_tube1_implement_accept ()

void
tp_svc_channel_type_stream_tube1_implement_accept
                               (TpSvcChannelTypeStreamTube1Class *klass,
                                tp_svc_channel_type_stream_tube1_accept_impl impl);

Register an implementation for the Accept method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the Accept D-Bus method

 

tp_svc_channel_type_stream_tube1_return_from_accept ()

void
tp_svc_channel_type_stream_tube1_return_from_accept
                               (GDBusMethodInvocation *invocation,
                                const GValue *out_address);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

out_address

const GValue * (FIXME, generate documentation)

 

tp_svc_channel_type_stream_tube1_emit_new_remote_connection ()

void
tp_svc_channel_type_stream_tube1_emit_new_remote_connection
                               (gpointer instance,
                                guint arg_Handle,
                                const gchar *arg_Identifier,
                                const GValue *arg_Connection_Param,
                                guint arg_Connection_ID);

Type-safe wrapper around g_signal_emit to emit the NewRemoteConnection signal on interface im.telepathy.v1.Channel.Type.StreamTube1.

Parameters

instance

The object implementing this interface

 

arg_Handle

guint (FIXME, generate documentation)

 

arg_Identifier

const gchar * (FIXME, generate documentation)

 

arg_Connection_Param

const GValue * (FIXME, generate documentation)

 

arg_Connection_ID

guint (FIXME, generate documentation)

 

tp_svc_channel_type_stream_tube1_emit_new_local_connection ()

void
tp_svc_channel_type_stream_tube1_emit_new_local_connection
                               (gpointer instance,
                                guint arg_Connection_ID);

Type-safe wrapper around g_signal_emit to emit the NewLocalConnection signal on interface im.telepathy.v1.Channel.Type.StreamTube1.

Parameters

instance

The object implementing this interface

 

arg_Connection_ID

guint (FIXME, generate documentation)

 

tp_svc_channel_type_stream_tube1_emit_connection_closed ()

void
tp_svc_channel_type_stream_tube1_emit_connection_closed
                               (gpointer instance,
                                guint arg_Connection_ID,
                                const gchar *arg_Error,
                                const gchar *arg_Message);

Type-safe wrapper around g_signal_emit to emit the ConnectionClosed signal on interface im.telepathy.v1.Channel.Type.StreamTube1.

Parameters

instance

The object implementing this interface

 

arg_Connection_ID

guint (FIXME, generate documentation)

 

arg_Error

const gchar * (FIXME, generate documentation)

 

arg_Message

const gchar * (FIXME, generate documentation)

 

tp_svc_channel_type_dbus_tube1_offer_impl ()

void
(*tp_svc_channel_type_dbus_tube1_offer_impl)
                               (TpSvcChannelTypeDBusTube1 *self,
                                GHashTable *in_parameters,
                                guint in_access_control,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method Offer on interface im.telepathy.v1.Channel.Type.DBusTube1.

Parameters

self

The object implementing this interface

 

in_parameters

GHashTable * (FIXME, generate documentation)

 

in_access_control

guint (FIXME, generate documentation)

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_dbus_tube1_implement_offer ()

void
tp_svc_channel_type_dbus_tube1_implement_offer
                               (TpSvcChannelTypeDBusTube1Class *klass,
                                tp_svc_channel_type_dbus_tube1_offer_impl impl);

Register an implementation for the Offer method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the Offer D-Bus method

 

tp_svc_channel_type_dbus_tube1_return_from_offer ()

void
tp_svc_channel_type_dbus_tube1_return_from_offer
                               (GDBusMethodInvocation *invocation,
                                const gchar *out_address);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

out_address

const gchar * (FIXME, generate documentation)

 

tp_svc_channel_type_dbus_tube1_accept_impl ()

void
(*tp_svc_channel_type_dbus_tube1_accept_impl)
                               (TpSvcChannelTypeDBusTube1 *self,
                                guint in_access_control,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method Accept on interface im.telepathy.v1.Channel.Type.DBusTube1.

Parameters

self

The object implementing this interface

 

in_access_control

guint (FIXME, generate documentation)

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_dbus_tube1_implement_accept ()

void
tp_svc_channel_type_dbus_tube1_implement_accept
                               (TpSvcChannelTypeDBusTube1Class *klass,
                                tp_svc_channel_type_dbus_tube1_accept_impl impl);

Register an implementation for the Accept method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the Accept D-Bus method

 

tp_svc_channel_type_dbus_tube1_return_from_accept ()

void
tp_svc_channel_type_dbus_tube1_return_from_accept
                               (GDBusMethodInvocation *invocation,
                                const gchar *out_address);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

out_address

const gchar * (FIXME, generate documentation)

 

tp_svc_channel_type_dbus_tube1_emit_dbus_names_changed ()

void
tp_svc_channel_type_dbus_tube1_emit_dbus_names_changed
                               (gpointer instance,
                                GHashTable *arg_Added,
                                const GArray *arg_Removed);

Type-safe wrapper around g_signal_emit to emit the DBusNamesChanged signal on interface im.telepathy.v1.Channel.Type.DBusTube1.

Parameters

instance

The object implementing this interface

 

arg_Added

GHashTable * (FIXME, generate documentation)

 

arg_Removed

const GArray * (FIXME, generate documentation)

 

Types and Values

TpSvcChannelInterfaceTube1

typedef struct _TpSvcChannelInterfaceTube1 TpSvcChannelInterfaceTube1;

Dummy typedef representing any implementation of this interface.


TpSvcChannelInterfaceTube1Class

typedef struct _TpSvcChannelInterfaceTube1Class TpSvcChannelInterfaceTube1Class;

The class of TpSvcChannelInterfaceTube1. This interface has no D-Bus methods, so an implementation can typically pass NULL to G_IMPLEMENT_INTERFACE() as the interface initialization function.


TpSvcChannelTypeStreamTube1

typedef struct _TpSvcChannelTypeStreamTube1 TpSvcChannelTypeStreamTube1;

Dummy typedef representing any implementation of this interface.


TpSvcChannelTypeStreamTube1Class

typedef struct _TpSvcChannelTypeStreamTube1Class TpSvcChannelTypeStreamTube1Class;

The class of TpSvcChannelTypeStreamTube1.

In a full implementation of this interface (i.e. all methods implemented), the interface initialization function used in G_IMPLEMENT_INTERFACE() would typically look like this:

static void
implement_channel_type_stream_tube1 (gpointer klass,
    gpointer unused G_GNUC_UNUSED)
{
#define IMPLEMENT(x) tp_svc_channel_type_stream_tube1_implement_##x (\
  klass, my_object_##x)
  IMPLEMENT (offer);
  IMPLEMENT (accept);
#undef IMPLEMENT
}

TpSvcChannelTypeDBusTube1

typedef struct _TpSvcChannelTypeDBusTube1 TpSvcChannelTypeDBusTube1;

Dummy typedef representing any implementation of this interface.


TpSvcChannelTypeDBusTube1Class

typedef struct _TpSvcChannelTypeDBusTube1Class TpSvcChannelTypeDBusTube1Class;

The class of TpSvcChannelTypeDBusTube1.

In a full implementation of this interface (i.e. all methods implemented), the interface initialization function used in G_IMPLEMENT_INTERFACE() would typically look like this:

static void
implement_channel_type_dbus_tube1 (gpointer klass,
    gpointer unused G_GNUC_UNUSED)
{
#define IMPLEMENT(x) tp_svc_channel_type_dbus_tube1_implement_##x (\
  klass, my_object_##x)
  IMPLEMENT (offer);
  IMPLEMENT (accept);
#undef IMPLEMENT
}

Signal Details

The “tube-channel-state-changed” signal

void
user_function (TpSvcChannelInterfaceTube1 *self,
               guint                       arg_State,
               gpointer                    user_data)

The TubeChannelStateChanged D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_State

guint (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details


The “connection-closed” signal

void
user_function (TpSvcChannelTypeStreamTube1 *self,
               guint                        arg_Connection_ID,
               gchar                       *arg_Error,
               gchar                       *arg_Message,
               gpointer                     user_data)

The ConnectionClosed D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_Connection_ID

guint (FIXME, generate documentation)

 

arg_Error

const gchar * (FIXME, generate documentation)

 

arg_Message

const gchar * (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details


The “new-local-connection” signal

void
user_function (TpSvcChannelTypeStreamTube1 *self,
               guint                        arg_Connection_ID,
               gpointer                     user_data)

The NewLocalConnection D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_Connection_ID

guint (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details


The “new-remote-connection” signal

void
user_function (TpSvcChannelTypeStreamTube1 *self,
               guint                        arg_Handle,
               gchar                       *arg_Identifier,
               GValue                      *arg_Connection_Param,
               guint                        arg_Connection_ID,
               gpointer                     user_data)

The NewRemoteConnection D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_Handle

guint (FIXME, generate documentation)

 

arg_Identifier

const gchar * (FIXME, generate documentation)

 

arg_Connection_Param

const GValue * (FIXME, generate documentation)

 

arg_Connection_ID

guint (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details


The “d-bus-names-changed” signal

void
user_function (TpSvcChannelTypeDBusTube1 *self,
               GArray_guint_             *arg_Removed,
               gpointer                   user_data)

The DBusNamesChanged D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_Added

GHashTable * (FIXME, generate documentation)

 

arg_Removed

const GArray * (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details