|  |  |  | telepathy-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
| Tube channelsTube channels — service-side interface for the Tube channel interface, StreamTube channel type and DBusTube channel type. | 
#include <telepathy-glib/svc-channel.h>
                    TpSvcChannelInterfaceTube;
                    TpSvcChannelInterfaceTubeClass;
void                tp_svc_channel_interface_tube_emit_tube_channel_state_changed
                                                        (gpointer instance,
                                                         guint arg_State);
                    TpSvcChannelTypeStreamTube;
                    TpSvcChannelTypeStreamTubeClass;
void                (*tp_svc_channel_type_stream_tube_offer_impl)
                                                        (TpSvcChannelTypeStreamTube *self,
                                                         guint in_address_type,
                                                         const GValue *in_address,
                                                         guint in_access_control,
                                                         GHashTable *in_parameters,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_type_stream_tube_implement_offer
                                                        (TpSvcChannelTypeStreamTubeClass *klass,
                                                         tp_svc_channel_type_stream_tube_offer_impl impl);
void                tp_svc_channel_type_stream_tube_return_from_offer
                                                        (DBusGMethodInvocation *context);
void                (*tp_svc_channel_type_stream_tube_accept_impl)
                                                        (TpSvcChannelTypeStreamTube *self,
                                                         guint in_address_type,
                                                         guint in_access_control,
                                                         const GValue *in_access_control_param,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_type_stream_tube_implement_accept
                                                        (TpSvcChannelTypeStreamTubeClass *klass,
                                                         tp_svc_channel_type_stream_tube_accept_impl impl);
void                tp_svc_channel_type_stream_tube_return_from_accept
                                                        (DBusGMethodInvocation *context,
                                                         const GValue *out_address);
void                tp_svc_channel_type_stream_tube_emit_new_remote_connection
                                                        (gpointer instance,
                                                         guint arg_Handle,
                                                         const GValue *arg_Connection_Param,
                                                         guint arg_Connection_ID);
void                tp_svc_channel_type_stream_tube_emit_new_local_connection
                                                        (gpointer instance,
                                                         guint arg_Connection_ID);
void                tp_svc_channel_type_stream_tube_emit_connection_closed
                                                        (gpointer instance,
                                                         guint arg_Connection_ID,
                                                         const gchar *arg_Error,
                                                         const gchar *arg_Message);
                    TpSvcChannelTypeDBusTube;
                    TpSvcChannelTypeDBusTubeClass;
void                (*tp_svc_channel_type_dbus_tube_offer_impl)
                                                        (TpSvcChannelTypeDBusTube *self,
                                                         GHashTable *in_parameters,
                                                         guint in_access_control,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_type_dbus_tube_implement_offer
                                                        (TpSvcChannelTypeDBusTubeClass *klass,
                                                         tp_svc_channel_type_dbus_tube_offer_impl impl);
void                tp_svc_channel_type_dbus_tube_return_from_offer
                                                        (DBusGMethodInvocation *context,
                                                         const gchar *out_address);
void                (*tp_svc_channel_type_dbus_tube_accept_impl)
                                                        (TpSvcChannelTypeDBusTube *self,
                                                         guint in_access_control,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_type_dbus_tube_implement_accept
                                                        (TpSvcChannelTypeDBusTubeClass *klass,
                                                         tp_svc_channel_type_dbus_tube_accept_impl impl);
void                tp_svc_channel_type_dbus_tube_return_from_accept
                                                        (DBusGMethodInvocation *context,
                                                         const gchar *out_address);
void                tp_svc_channel_type_dbus_tube_emit_dbus_names_changed
                                                        (gpointer instance,
                                                         GHashTable *arg_Added,
                                                         const GArray *arg_Removed);
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.
typedef struct _TpSvcChannelInterfaceTube TpSvcChannelInterfaceTube;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelInterfaceTubeClass TpSvcChannelInterfaceTubeClass;
The class of TpSvcChannelInterfaceTube.
void                tp_svc_channel_interface_tube_emit_tube_channel_state_changed
                                                        (gpointer instance,
                                                         guint arg_State);
Type-safe wrapper around g_signal_emit to emit the TubeChannelStateChanged signal on interface org.freedesktop.Telepathy.Channel.Interface.Tube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
typedef struct _TpSvcChannelTypeStreamTube TpSvcChannelTypeStreamTube;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelTypeStreamTubeClass TpSvcChannelTypeStreamTubeClass;
The class of TpSvcChannelTypeStreamTube.
void                (*tp_svc_channel_type_stream_tube_offer_impl)
                                                        (TpSvcChannelTypeStreamTube *self,
                                                         guint in_address_type,
                                                         const GValue *in_address,
                                                         guint in_access_control,
                                                         GHashTable *in_parameters,
                                                         DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method Offer on interface org.freedesktop.Telepathy.Channel.Type.StreamTube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | const GValue * (FIXME, generate documentation) | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | GHashTable * (FIXME, generate documentation) | 
| 
 | Used to return values or throw an error | 
void                tp_svc_channel_type_stream_tube_implement_offer
                                                        (TpSvcChannelTypeStreamTubeClass *klass,
                                                         tp_svc_channel_type_stream_tube_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.
| 
 | A class whose instances implement this interface | 
| 
 | A callback used to implement the Offer D-Bus method | 
void                tp_svc_channel_type_stream_tube_return_from_offer
                                                        (DBusGMethodInvocation *context);
Return successfully by calling dbus_g_method_return().
This inline function exists only to provide type-safety.
| 
 | The D-Bus method invocation context | 
void                (*tp_svc_channel_type_stream_tube_accept_impl)
                                                        (TpSvcChannelTypeStreamTube *self,
                                                         guint in_address_type,
                                                         guint in_access_control,
                                                         const GValue *in_access_control_param,
                                                         DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method Accept on interface org.freedesktop.Telepathy.Channel.Type.StreamTube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | const GValue * (FIXME, generate documentation) | 
| 
 | Used to return values or throw an error | 
void                tp_svc_channel_type_stream_tube_implement_accept
                                                        (TpSvcChannelTypeStreamTubeClass *klass,
                                                         tp_svc_channel_type_stream_tube_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.
| 
 | A class whose instances implement this interface | 
| 
 | A callback used to implement the Accept D-Bus method | 
void                tp_svc_channel_type_stream_tube_return_from_accept
                                                        (DBusGMethodInvocation *context,
                                                         const GValue *out_address);
Return successfully by calling dbus_g_method_return().
This inline function exists only to provide type-safety.
| 
 | The D-Bus method invocation context | 
| 
 | const GValue * (FIXME, generate documentation) | 
void                tp_svc_channel_type_stream_tube_emit_new_remote_connection
                                                        (gpointer instance,
                                                         guint arg_Handle,
                                                         const GValue *arg_Connection_Param,
                                                         guint arg_Connection_ID);
Type-safe wrapper around g_signal_emit to emit the NewRemoteConnection signal on interface org.freedesktop.Telepathy.Channel.Type.StreamTube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | const GValue * (FIXME, generate documentation) | 
| 
 | guint (FIXME, generate documentation) | 
void                tp_svc_channel_type_stream_tube_emit_new_local_connection
                                                        (gpointer instance,
                                                         guint arg_Connection_ID);
Type-safe wrapper around g_signal_emit to emit the NewLocalConnection signal on interface org.freedesktop.Telepathy.Channel.Type.StreamTube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
void                tp_svc_channel_type_stream_tube_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 org.freedesktop.Telepathy.Channel.Type.StreamTube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | const gchar * (FIXME, generate documentation) | 
| 
 | const gchar * (FIXME, generate documentation) | 
typedef struct _TpSvcChannelTypeDBusTube TpSvcChannelTypeDBusTube;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelTypeDBusTubeClass TpSvcChannelTypeDBusTubeClass;
The class of TpSvcChannelTypeDBusTube.
void                (*tp_svc_channel_type_dbus_tube_offer_impl)
                                                        (TpSvcChannelTypeDBusTube *self,
                                                         GHashTable *in_parameters,
                                                         guint in_access_control,
                                                         DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method Offer on interface org.freedesktop.Telepathy.Channel.Type.DBusTube.
| 
 | The object implementing this interface | 
| 
 | GHashTable * (FIXME, generate documentation) | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | Used to return values or throw an error | 
void                tp_svc_channel_type_dbus_tube_implement_offer
                                                        (TpSvcChannelTypeDBusTubeClass *klass,
                                                         tp_svc_channel_type_dbus_tube_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.
| 
 | A class whose instances implement this interface | 
| 
 | A callback used to implement the Offer D-Bus method | 
void                tp_svc_channel_type_dbus_tube_return_from_offer
                                                        (DBusGMethodInvocation *context,
                                                         const gchar *out_address);
Return successfully by calling dbus_g_method_return().
This inline function exists only to provide type-safety.
| 
 | The D-Bus method invocation context | 
| 
 | const gchar * (FIXME, generate documentation) | 
void                (*tp_svc_channel_type_dbus_tube_accept_impl)
                                                        (TpSvcChannelTypeDBusTube *self,
                                                         guint in_access_control,
                                                         DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method Accept on interface org.freedesktop.Telepathy.Channel.Type.DBusTube.
| 
 | The object implementing this interface | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | Used to return values or throw an error | 
void                tp_svc_channel_type_dbus_tube_implement_accept
                                                        (TpSvcChannelTypeDBusTubeClass *klass,
                                                         tp_svc_channel_type_dbus_tube_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.
| 
 | A class whose instances implement this interface | 
| 
 | A callback used to implement the Accept D-Bus method | 
void                tp_svc_channel_type_dbus_tube_return_from_accept
                                                        (DBusGMethodInvocation *context,
                                                         const gchar *out_address);
Return successfully by calling dbus_g_method_return().
This inline function exists only to provide type-safety.
| 
 | The D-Bus method invocation context | 
| 
 | const gchar * (FIXME, generate documentation) | 
void                tp_svc_channel_type_dbus_tube_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 org.freedesktop.Telepathy.Channel.Type.DBusTube.
| 
 | The object implementing this interface | 
| 
 | GHashTable * (FIXME, generate documentation) | 
| 
 | const GArray * (FIXME, generate documentation) |