Service-side Connection Manager interface

Service-side Connection Manager interface — GInterface for Telepathy ConnectionManager objects

Synopsis


#include <telepathy-glib/svc-connection-manager.h>


                    TpSvcConnectionManager;
                    TpSvcConnectionManagerClass;
void                (*tp_svc_connection_manager_get_parameters_impl)
                                                        (TpSvcConnectionManager *self,
                                                         const gchar *proto,
                                                         DBusGMethodInvocation *context);
void                tp_svc_connection_manager_implement_get_parameters
                                                        (TpSvcConnectionManagerClass *klass,
                                                         tp_svc_connection_manager_get_parameters_impl impl);
void                tp_svc_connection_manager_return_from_get_parameters
                                                        (DBusGMethodInvocation *dbus_context,
                                                         const GPtrArray *ret);
void                (*tp_svc_connection_manager_list_protocols_impl)
                                                        (TpSvcConnectionManager *self,
                                                         DBusGMethodInvocation *context);
void                tp_svc_connection_manager_implement_list_protocols
                                                        (TpSvcConnectionManagerClass *klass,
                                                         tp_svc_connection_manager_list_protocols_impl impl);
void                tp_svc_connection_manager_return_from_list_protocols
                                                        (DBusGMethodInvocation *dbus_context,
                                                         const gchar **ret);
void                (*tp_svc_connection_manager_request_connection_impl)
                                                        (TpSvcConnectionManager *self,
                                                         const gchar *proto,
                                                         GHashTable *parameters,
                                                         DBusGMethodInvocation *context);
void                tp_svc_connection_manager_implement_request_connection
                                                        (TpSvcConnectionManagerClass *klass,
                                                         tp_svc_connection_manager_request_connection_impl impl);
void                tp_svc_connection_manager_return_from_request_connection
                                                        (DBusGMethodInvocation *dbus_context,
                                                         const gchar *ret,
                                                         const gchar *ret1);
void                tp_svc_connection_manager_emit_new_connection
                                                        (gpointer instance,
                                                         const gchar *bus_name,
                                                         const gchar *object_path,
                                                         const gchar *proto);


Object Hierarchy


  GInterface
   +----TpSvcConnectionManager

Known Implementations

TpSvcConnectionManager is implemented by TpBaseConnectionManager.

Description

The TpSvcConnectionManager interface (auto-generated from the Telepathy spec) makes it easier to export an object implementing the Telepathy ConnectionManager interface, with the correct method and signal signatures, and emit signals from that object in a type-safe way.

Details

TpSvcConnectionManager

typedef struct _TpSvcConnectionManager TpSvcConnectionManager;

Dummy typedef representing any implementation of this interface.


TpSvcConnectionManagerClass

typedef struct _TpSvcConnectionManagerClass TpSvcConnectionManagerClass;

The class of TpSvcConnectionManager.


tp_svc_connection_manager_get_parameters_impl ()

void                (*tp_svc_connection_manager_get_parameters_impl)
                                                        (TpSvcConnectionManager *self,
                                                         const gchar *proto,
                                                         DBusGMethodInvocation *context);

Signature of an implementation of D-Bus method GetParameters on interface org.freedesktop.Telepathy.ConnectionManager

self :

The object implementing this interface

proto :

FIXME: document args in genginterface

context :

The D-Bus invocation context to use to return values or throw an error.

tp_svc_connection_manager_implement_get_parameters ()

void                tp_svc_connection_manager_implement_get_parameters
                                                        (TpSvcConnectionManagerClass *klass,
                                                         tp_svc_connection_manager_get_parameters_impl impl);

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

klass :

A class whose instances implement this interface

impl :

A callback used to implement the GetParameters method

tp_svc_connection_manager_return_from_get_parameters ()

void                tp_svc_connection_manager_return_from_get_parameters
                                                        (DBusGMethodInvocation *dbus_context,
                                                         const GPtrArray *ret);

Return successfully by calling dbus_g_method_return (dbus_context, ...). This inline function is just a type-safe wrapper for dbus_g_method_return.

dbus_context :

The D-Bus method invocation context

ret :

FIXME: document args in genginterface

tp_svc_connection_manager_list_protocols_impl ()

void                (*tp_svc_connection_manager_list_protocols_impl)
                                                        (TpSvcConnectionManager *self,
                                                         DBusGMethodInvocation *context);

Signature of an implementation of D-Bus method ListProtocols on interface org.freedesktop.Telepathy.ConnectionManager

self :

The object implementing this interface

context :

The D-Bus invocation context to use to return values or throw an error.

tp_svc_connection_manager_implement_list_protocols ()

void                tp_svc_connection_manager_implement_list_protocols
                                                        (TpSvcConnectionManagerClass *klass,
                                                         tp_svc_connection_manager_list_protocols_impl impl);

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

klass :

A class whose instances implement this interface

impl :

A callback used to implement the ListProtocols method

tp_svc_connection_manager_return_from_list_protocols ()

void                tp_svc_connection_manager_return_from_list_protocols
                                                        (DBusGMethodInvocation *dbus_context,
                                                         const gchar **ret);

Return successfully by calling dbus_g_method_return (dbus_context, ...). This inline function is just a type-safe wrapper for dbus_g_method_return.

dbus_context :

The D-Bus method invocation context

ret :

FIXME: document args in genginterface

tp_svc_connection_manager_request_connection_impl ()

void                (*tp_svc_connection_manager_request_connection_impl)
                                                        (TpSvcConnectionManager *self,
                                                         const gchar *proto,
                                                         GHashTable *parameters,
                                                         DBusGMethodInvocation *context);

Signature of an implementation of D-Bus method RequestConnection on interface org.freedesktop.Telepathy.ConnectionManager

self :

The object implementing this interface

proto :

FIXME: document args in genginterface

parameters :

FIXME: document args in genginterface

context :

The D-Bus invocation context to use to return values or throw an error.

tp_svc_connection_manager_implement_request_connection ()

void                tp_svc_connection_manager_implement_request_connection
                                                        (TpSvcConnectionManagerClass *klass,
                                                         tp_svc_connection_manager_request_connection_impl impl);

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

klass :

A class whose instances implement this interface

impl :

A callback used to implement the RequestConnection method

tp_svc_connection_manager_return_from_request_connection ()

void                tp_svc_connection_manager_return_from_request_connection
                                                        (DBusGMethodInvocation *dbus_context,
                                                         const gchar *ret,
                                                         const gchar *ret1);

Return successfully by calling dbus_g_method_return (dbus_context, ...). This inline function is just a type-safe wrapper for dbus_g_method_return.

dbus_context :

The D-Bus method invocation context

ret :

FIXME: document args in genginterface

ret1 :

FIXME: document args in genginterface

tp_svc_connection_manager_emit_new_connection ()

void                tp_svc_connection_manager_emit_new_connection
                                                        (gpointer instance,
                                                         const gchar *bus_name,
                                                         const gchar *object_path,
                                                         const gchar *proto);

Emit the NewConnection D-Bus signal from instance with the given arguments.

instance :

An object implementing this interface

bus_name :

FIXME: document args in genginterface

object_path :

FIXME: document args in genginterface

proto :

FIXME: document args in genginterface

See Also

TpBaseConnection