|  |  |  | telepathy-glib Reference Manual |  | 
|---|---|---|---|---|
| Service-side Channel base interfaceService-side Channel base interface — GInterface for Telepathy Channel objects | 
#include <telepathy-glib/svc-channel.h>
                    TpSvcChannel;
                    TpSvcChannelClass;
void                (*tp_svc_channel_close_impl)        (TpSvcChannel *self,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_implement_close      (TpSvcChannelClass *klass,
                                                         tp_svc_channel_close_impl impl);
void                tp_svc_channel_return_from_close    (DBusGMethodInvocation *context);
void                (*tp_svc_channel_get_channel_type_impl)
                                                        (TpSvcChannel *self,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_implement_get_channel_type
                                                        (TpSvcChannelClass *klass,
                                                         tp_svc_channel_get_channel_type_impl impl);
void                tp_svc_channel_return_from_get_channel_type
                                                        (DBusGMethodInvocation *context,
                                                         const gchar *out0);
void                (*tp_svc_channel_get_handle_impl)   (TpSvcChannel *self,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_implement_get_handle (TpSvcChannelClass *klass,
                                                         tp_svc_channel_get_handle_impl impl);
void                tp_svc_channel_return_from_get_handle
                                                        (DBusGMethodInvocation *context,
                                                         guint out0,
                                                         guint out1);
void                (*tp_svc_channel_get_interfaces_impl)
                                                        (TpSvcChannel *self,
                                                         DBusGMethodInvocation *context);
void                tp_svc_channel_implement_get_interfaces
                                                        (TpSvcChannelClass *klass,
                                                         tp_svc_channel_get_interfaces_impl impl);
void                tp_svc_channel_return_from_get_interfaces
                                                        (DBusGMethodInvocation *context,
                                                         const gchar **out0);
void                tp_svc_channel_emit_closed          (gpointer instance);
This interface (auto-generated from the Telepathy spec) makes it easier to export objects implementing the Telepathy Channel.
typedef struct _TpSvcChannel TpSvcChannel;
Dummy typedef representing any implementation of this interface.
void (*tp_svc_channel_close_impl) (TpSvcChannel *self, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method Close on interface org.freedesktop.Telepathy.Channel.
| 
 | The object implementing this interface | 
| 
 | Used to return values or throw an error | 
void tp_svc_channel_implement_close (TpSvcChannelClass *klass, tp_svc_channel_close_impl impl);
Register an implementation for the Close 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 Close D-Bus method | 
void tp_svc_channel_return_from_close (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_get_channel_type_impl)
                                                        (TpSvcChannel *self,
                                                         DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method GetChannelType on interface org.freedesktop.Telepathy.Channel.
| 
 | The object implementing this interface | 
| 
 | Used to return values or throw an error | 
void                tp_svc_channel_implement_get_channel_type
                                                        (TpSvcChannelClass *klass,
                                                         tp_svc_channel_get_channel_type_impl impl);
Register an implementation for the GetChannelType 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 GetChannelType D-Bus method | 
void                tp_svc_channel_return_from_get_channel_type
                                                        (DBusGMethodInvocation *context,
                                                         const gchar *out0);
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_get_handle_impl) (TpSvcChannel *self, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method GetHandle on interface org.freedesktop.Telepathy.Channel.
| 
 | The object implementing this interface | 
| 
 | Used to return values or throw an error | 
void tp_svc_channel_implement_get_handle (TpSvcChannelClass *klass, tp_svc_channel_get_handle_impl impl);
Register an implementation for the GetHandle 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 GetHandle D-Bus method | 
void                tp_svc_channel_return_from_get_handle
                                                        (DBusGMethodInvocation *context,
                                                         guint out0,
                                                         guint out1);
Return successfully by calling dbus_g_method_return().
This inline function exists only to provide type-safety.
| 
 | The D-Bus method invocation context | 
| 
 | guint (FIXME, generate documentation) | 
| 
 | guint (FIXME, generate documentation) | 
void                (*tp_svc_channel_get_interfaces_impl)
                                                        (TpSvcChannel *self,
                                                         DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method GetInterfaces on interface org.freedesktop.Telepathy.Channel.
| 
 | The object implementing this interface | 
| 
 | Used to return values or throw an error | 
void                tp_svc_channel_implement_get_interfaces
                                                        (TpSvcChannelClass *klass,
                                                         tp_svc_channel_get_interfaces_impl impl);
Register an implementation for the GetInterfaces 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 GetInterfaces D-Bus method | 
void                tp_svc_channel_return_from_get_interfaces
                                                        (DBusGMethodInvocation *context,
                                                         const gchar **out0);
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_emit_closed (gpointer instance);
Type-safe wrapper around g_signal_emit to emit the Closed signal on interface org.freedesktop.Telepathy.Channel.
| 
 | The object implementing this interface |