![]() |
![]() |
![]() |
telepathy-glib Reference Manual | ![]() |
---|---|---|---|---|
Service-side Connection Manager interfaceService-side Connection Manager interface — GInterface for Telepathy ConnectionManager objects |
#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);
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.
typedef struct _TpSvcConnectionManager TpSvcConnectionManager;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcConnectionManagerClass TpSvcConnectionManagerClass;
The class of TpSvcConnectionManager.
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
|
The object implementing this interface |
|
FIXME: document args in genginterface |
|
The D-Bus invocation context to use to return values or throw an error. |
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.
|
A class whose instances implement this interface |
|
A callback used to implement the GetParameters method |
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.
|
The D-Bus method invocation context |
|
FIXME: document args in genginterface |
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
|
The object implementing this interface |
|
The D-Bus invocation context to use to return values or throw an error. |
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.
|
A class whose instances implement this interface |
|
A callback used to implement the ListProtocols method |
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.
|
The D-Bus method invocation context |
|
FIXME: document args in genginterface |
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
|
The object implementing this interface |
|
FIXME: document args in genginterface |
|
FIXME: document args in genginterface |
|
The D-Bus invocation context to use to return values or throw an error. |
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.
|
A class whose instances implement this interface |
|
A callback used to implement the RequestConnection method |
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.
|
The D-Bus method invocation context |
|
FIXME: document args in genginterface |
|
FIXME: document args in genginterface |
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.
|
An object implementing this interface |
|
FIXME: document args in genginterface |
|
FIXME: document args in genginterface |
|
FIXME: document args in genginterface |