D-Bus utilities

D-Bus utilities — some D-Bus utility functions

Synopsis


#include <telepathy-glib/dbus.h>

void                tp_dbus_g_method_return_not_implemented
                                                        (DBusGMethodInvocation *context);
DBusGConnection*    tp_get_bus                          (void);
DBusGProxy*         tp_get_bus_proxy                    (void);
enum                TpDBusNameType;
gboolean            tp_dbus_check_valid_bus_name        (const gchar *name,
                                                         TpDBusNameType allow_types,
                                                         GError **error);
gboolean            tp_dbus_check_valid_interface_name  (const gchar *name,
                                                         GError **error);
gboolean            tp_dbus_check_valid_member_name     (const gchar *name,
                                                         GError **error);
gboolean            tp_dbus_check_valid_object_path     (const gchar *path,
                                                         GError **error);

gboolean            tp_asv_get_boolean                  (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);
gpointer            tp_asv_get_boxed                    (const GHashTable *asv,
                                                         const gchar *key,
                                                         GType type);
const GArray*       tp_asv_get_bytes                    (const GHashTable *asv,
                                                         const gchar *key);
gdouble             tp_asv_get_double                   (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);
gint32              tp_asv_get_int32                    (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);
gint64              tp_asv_get_int64                    (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);
const gchar*        tp_asv_get_object_path              (const GHashTable *asv,
                                                         const gchar *key);
const gchar*        tp_asv_get_string                   (const GHashTable *asv,
                                                         const gchar *key);
const gchar* const * tp_asv_get_strv                    (const GHashTable *asv,
                                                         const gchar *key);
guint32             tp_asv_get_uint32                   (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);
guint64             tp_asv_get_uint64                   (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);
const GValue*       tp_asv_lookup                       (const GHashTable *asv,
                                                         const gchar *key);

                    TpDBusDaemon;
                    TpDBusDaemonClass;
TpDBusDaemon*       tp_dbus_daemon_new                  (DBusGConnection *connection);
void                (*TpDBusDaemonNameOwnerChangedCb)   (TpDBusDaemon *daemon,
                                                         const gchar *name,
                                                         const gchar *new_owner,
                                                         gpointer user_data);
void                tp_dbus_daemon_watch_name_owner     (TpDBusDaemon *self,
                                                         const gchar *name,
                                                         TpDBusDaemonNameOwnerChangedCb callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy);
gboolean            tp_dbus_daemon_cancel_name_owner_watch
                                                        (TpDBusDaemon *self,
                                                         const gchar *name,
                                                         TpDBusDaemonNameOwnerChangedCb callback,
                                                         gconstpointer user_data);

TpProxyPendingCall* tp_cli_dbus_daemon_call_add_match   (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_add_match callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_get_connection_se_linux_security_context
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_connection_se_linux_security_context callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_get_connection_unix_process_id
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_connection_unix_process_id callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_get_connection_unix_user
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_connection_unix_user callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_get_id      (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_get_id callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_get_name_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_name_owner callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_hello       (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_hello callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_list_activatable_names
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_list_activatable_names callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_list_names  (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_list_names callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_list_queued_owners
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_list_queued_owners callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_name_has_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_name_has_owner callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_release_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_release_name callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_reload_config
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_reload_config callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_remove_match
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_remove_match callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_request_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         tp_cli_dbus_daemon_callback_for_request_name callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
TpProxyPendingCall* tp_cli_dbus_daemon_call_start_service_by_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         tp_cli_dbus_daemon_callback_for_start_service_by_name callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);
gboolean            tp_cli_dbus_daemon_run_add_match    (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_get_connection_se_linux_security_context
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         GArray **out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_get_connection_unix_process_id
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_get_connection_unix_user
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_get_id       (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar **out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_get_name_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         gchar **out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_hello        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar **out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_list_activatable_names
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar ***out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_list_names   (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar ***out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_list_queued_owners
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         gchar ***out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_name_has_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         gboolean *out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_release_name (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_reload_config
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_remove_match (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_request_name (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);
gboolean            tp_cli_dbus_daemon_run_start_service_by_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);
void                (*tp_cli_dbus_daemon_callback_for_add_match)
                                                        (TpDBusDaemon *proxy,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_get_connection_se_linux_security_context)
                                                        (TpDBusDaemon *proxy,
                                                         const GArray *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_get_connection_unix_process_id)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_get_connection_unix_user)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_get_id)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_get_name_owner)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_hello)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_list_activatable_names)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar **out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_list_names)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar **out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_list_queued_owners)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar **out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_name_has_owner)
                                                        (TpDBusDaemon *proxy,
                                                         gboolean out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_release_name)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_reload_config)
                                                        (TpDBusDaemon *proxy,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_remove_match)
                                                        (TpDBusDaemon *proxy,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_request_name)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_callback_for_start_service_by_name)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);
TpProxySignalConnection* tp_cli_dbus_daemon_connect_to_name_acquired
                                                        (TpDBusDaemon *proxy,
                                                         tp_cli_dbus_daemon_signal_callback_name_acquired callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object,
                                                         GError **error);
TpProxySignalConnection* tp_cli_dbus_daemon_connect_to_name_lost
                                                        (TpDBusDaemon *proxy,
                                                         tp_cli_dbus_daemon_signal_callback_name_lost callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object,
                                                         GError **error);
TpProxySignalConnection* tp_cli_dbus_daemon_connect_to_name_owner_changed
                                                        (TpDBusDaemon *proxy,
                                                         tp_cli_dbus_daemon_signal_callback_name_owner_changed callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object,
                                                         GError **error);
void                (*tp_cli_dbus_daemon_signal_callback_name_acquired)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *arg0,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_signal_callback_name_lost)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *arg0,
                                                         gpointer user_data,
                                                         GObject *weak_object);
void                (*tp_cli_dbus_daemon_signal_callback_name_owner_changed)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *arg0,
                                                         const gchar *arg1,
                                                         const gchar *arg2,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Object Hierarchy

  GObject
   +----TpProxy
         +----TpDBusDaemon

Description

D-Bus utility functions used in telepathy-glib.

Details

tp_dbus_g_method_return_not_implemented ()

void                tp_dbus_g_method_return_not_implemented
                                                        (DBusGMethodInvocation *context);

Return the Telepathy error NotImplemented from the method invocation given by context.

context :

The D-Bus method invocation context

tp_get_bus ()

DBusGConnection*    tp_get_bus                          (void);

Returns :

a connection to the starter or session D-Bus daemon.

tp_get_bus_proxy ()

DBusGProxy*         tp_get_bus_proxy                    (void);

Returns :

a proxy for the bus daemon object on the starter or session bus.

enum TpDBusNameType

typedef enum
{
  TP_DBUS_NAME_TYPE_UNIQUE = 1,
  TP_DBUS_NAME_TYPE_WELL_KNOWN = 2,
  TP_DBUS_NAME_TYPE_BUS_DAEMON = 4,
  TP_DBUS_NAME_TYPE_NOT_BUS_DAEMON =
    TP_DBUS_NAME_TYPE_UNIQUE | TP_DBUS_NAME_TYPE_WELL_KNOWN,
  TP_DBUS_NAME_TYPE_ANY =
    TP_DBUS_NAME_TYPE_NOT_BUS_DAEMON | TP_DBUS_NAME_TYPE_BUS_DAEMON
} TpDBusNameType;

A set of flags indicating which D-Bus bus names are acceptable. They can be combined with the bitwise-or operator to accept multiple types. TP_DBUS_NAME_TYPE_NOT_BUS_DAEMON and TP_DBUS_NAME_TYPE_ANY are the bitwise-or of other appropriate types, for convenience.

TP_DBUS_NAME_TYPE_UNIQUE

accept unique names like :1.123 (not including the name of the bus daemon itself)

TP_DBUS_NAME_TYPE_WELL_KNOWN

accept well-known names like com.example.Service (not including the name of the bus daemon itself)

TP_DBUS_NAME_TYPE_BUS_DAEMON

accept the name of the bus daemon itself, which has the syntax of a well-known name, but behaves like a unique name

TP_DBUS_NAME_TYPE_NOT_BUS_DAEMON

accept either unique or well-known names, but not the bus daemon

TP_DBUS_NAME_TYPE_ANY

accept any of the above

Since 0.7.1


tp_dbus_check_valid_bus_name ()

gboolean            tp_dbus_check_valid_bus_name        (const gchar *name,
                                                         TpDBusNameType allow_types,
                                                         GError **error);

Check that the given string is a valid D-Bus bus name of an appropriate type.

name :

a possible bus name

allow_types :

some combination of TP_DBUS_NAME_TYPE_UNIQUE, TP_DBUS_NAME_TYPE_WELL_KNOWN or TP_DBUS_NAME_TYPE_BUS_DAEMON (often this will be TP_DBUS_NAME_TYPE_NOT_BUS_DAEMON or TP_DBUS_NAME_TYPE_ANY)

error :

used to raise TP_DBUS_ERROR_INVALID_BUS_NAME if FALSE is returned

Returns :

TRUE if name is valid

Since 0.7.1


tp_dbus_check_valid_interface_name ()

gboolean            tp_dbus_check_valid_interface_name  (const gchar *name,
                                                         GError **error);

Check that the given string is a valid D-Bus interface name. This is also appropriate to use to check for valid error names.

name :

a possible interface name

error :

used to raise TP_DBUS_ERROR_INVALID_INTERFACE_NAME if FALSE is returned

Returns :

TRUE if name is valid

Since 0.7.1


tp_dbus_check_valid_member_name ()

gboolean            tp_dbus_check_valid_member_name     (const gchar *name,
                                                         GError **error);

Check that the given string is a valid D-Bus member (method or signal) name.

name :

a possible member name

error :

used to raise TP_DBUS_ERROR_INVALID_MEMBER_NAME if FALSE is returned

Returns :

TRUE if name is valid

Since 0.7.1


tp_dbus_check_valid_object_path ()

gboolean            tp_dbus_check_valid_object_path     (const gchar *path,
                                                         GError **error);

Check that the given string is a valid D-Bus object path.

path :

a possible object path

error :

used to raise TP_DBUS_ERROR_INVALID_OBJECT_PATH if FALSE is returned

Returns :

TRUE if path is valid

Since 0.7.1


tp_asv_get_boolean ()

gboolean            tp_asv_get_boolean                  (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);

If a value for key in asv is present and boolean, return it, and set *valid to TRUE if valid is not NULL.

Otherwise return FALSE, and set *valid to FALSE if valid is not NULL.

(FIXME: should we also allow 'i' and 'u' with nonzero <=> True?)

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

valid :

Either NULL, or a location to store TRUE if the key actually exists and has a boolean value

Returns :

a boolean value for key since 0.7.9

tp_asv_get_boxed ()

gpointer            tp_asv_get_boxed                    (const GHashTable *asv,
                                                         const gchar *key,
                                                         GType type);

If a value for key in asv is present and is of the desired type, return it.

Otherwise return NULL.

The returned value is not copied, and is only valid as long as the value for key in asv is not removed or altered. Copy it, for instance with g_boxed_copy(), if you need to keep it for longer.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

type :

The type that the key's value should have, which must be derived from G_TYPE_BOXED

Returns :

the value of key, or NULL since 0.7.9

tp_asv_get_bytes ()

const GArray*       tp_asv_get_bytes                    (const GHashTable *asv,
                                                         const gchar *key);

If a value for key in asv is present and is an array of bytes (its GType is DBUS_TYPE_G_UCHAR_ARRAY), return it.

Otherwise return NULL.

The returned value is not copied, and is only valid as long as the value for key in asv is not removed or altered. Copy it with g_boxed_copy (DBUS_TYPE_G_UCHAR_ARRAY, ...) if you need to keep it for longer.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

Returns :

the string value of key, or NULL since 0.7.9

tp_asv_get_double ()

gdouble             tp_asv_get_double                   (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);

If a value for key in asv is present and has any numeric type used by dbus-glib (guchar, gint, guint, gint64, guint64 or gdouble), return it as a double, and if valid is not NULL, set *valid to TRUE.

Otherwise, return 0.0, and if valid is not NULL, set *valid to FALSE.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

valid :

Either NULL, or a location in which to store TRUE on success or FALSE on failure

Returns :

the double precision floating-point value of key, or 0.0 since 0.7.9

tp_asv_get_int32 ()

gint32              tp_asv_get_int32                    (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);

If a value for key in asv is present, has an integer type used by dbus-glib (guchar, gint, guint, gint64 or guint64) and fits in the range of a gint32, return it, and if valid is not NULL, set *valid to TRUE.

Otherwise, return 0, and if valid is not NULL, set *valid to FALSE.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

valid :

Either NULL, or a location in which to store TRUE on success or FALSE on failure

Returns :

the 32-bit signed integer value of key, or 0 since 0.7.9

tp_asv_get_int64 ()

gint64              tp_asv_get_int64                    (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);

If a value for key in asv is present, has an integer type used by dbus-glib (guchar, gint, guint, gint64 or guint64) and fits in the range of a gint64, return it, and if valid is not NULL, set *valid to TRUE.

Otherwise, return 0, and if valid is not NULL, set *valid to FALSE.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

valid :

Either NULL, or a location in which to store TRUE on success or FALSE on failure

Returns :

the 64-bit signed integer value of key, or 0 since 0.7.9

tp_asv_get_object_path ()

const gchar*        tp_asv_get_object_path              (const GHashTable *asv,
                                                         const gchar *key);

If a value for key in asv is present and is an object path, return it.

Otherwise return NULL.

The returned value is not copied, and is only valid as long as the value for key in asv is not removed or altered. Copy it with g_strdup() if you need to keep it for longer.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

Returns :

the object-path value of key, or NULL since 0.7.9

tp_asv_get_string ()

const gchar*        tp_asv_get_string                   (const GHashTable *asv,
                                                         const gchar *key);

If a value for key in asv is present and is a string, return it.

Otherwise return NULL.

The returned value is not copied, and is only valid as long as the value for key in asv is not removed or altered. Copy it with g_strdup() if you need to keep it for longer.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

Returns :

the string value of key, or NULL since 0.7.9

tp_asv_get_strv ()

const gchar* const * tp_asv_get_strv                    (const GHashTable *asv,
                                                         const gchar *key);

If a value for key in asv is present and is an array of strings (strv), return it.

Otherwise return NULL.

The returned value is not copied, and is only valid as long as the value for key in asv is not removed or altered. Copy it with g_strdupv() if you need to keep it for longer.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

Returns :

the NULL-terminated string-array value of key, or NULL since 0.7.9

tp_asv_get_uint32 ()

guint32             tp_asv_get_uint32                   (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);

If a value for key in asv is present, has an integer type used by dbus-glib (guchar, gint, guint, gint64 or guint64) and fits in the range of a guint32, return it, and if valid is not NULL, set *valid to TRUE.

Otherwise, return 0, and if valid is not NULL, set *valid to FALSE.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

valid :

Either NULL, or a location in which to store TRUE on success or FALSE on failure

Returns :

the 32-bit unsigned integer value of key, or 0 since 0.7.9

tp_asv_get_uint64 ()

guint64             tp_asv_get_uint64                   (const GHashTable *asv,
                                                         const gchar *key,
                                                         gboolean *valid);

If a value for key in asv is present, has an integer type used by dbus-glib (guchar, gint, guint, gint64 or guint64) and is non-negative, return it, and if valid is not NULL, set *valid to TRUE.

Otherwise, return 0, and if valid is not NULL, set *valid to FALSE.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

valid :

Either NULL, or a location in which to store TRUE on success or FALSE on failure

Returns :

the 64-bit unsigned integer value of key, or 0 since 0.7.9

tp_asv_lookup ()

const GValue*       tp_asv_lookup                       (const GHashTable *asv,
                                                         const gchar *key);

If a value for key in asv is present, return it. Otherwise return NULL.

The returned value is not copied, and is only valid as long as the value for key in asv is not removed or altered. Copy it with (for instance) g_value_copy() if you need to keep it for longer.

asv :

A GHashTable where the keys are strings and the values are GValues

key :

The key to look up

Returns :

the value of key, or NULL since 0.7.9

TpDBusDaemon

typedef struct _TpDBusDaemon TpDBusDaemon;

A subclass of TpProxy that represents the D-Bus daemon. It mainly provides functionality to manage well-known names on the bus.

Since 0.7.1


TpDBusDaemonClass

typedef struct _TpDBusDaemonClass TpDBusDaemonClass;

The class of TpDBusDaemon.

Since 0.7.1


tp_dbus_daemon_new ()

TpDBusDaemon*       tp_dbus_daemon_new                  (DBusGConnection *connection);

connection :

a connection to D-Bus

Returns :

a new proxy for signals and method calls on the bus daemon to which connection is connected

Since 0.7.1


TpDBusDaemonNameOwnerChangedCb ()

void                (*TpDBusDaemonNameOwnerChangedCb)   (TpDBusDaemon *daemon,
                                                         const gchar *name,
                                                         const gchar *new_owner,
                                                         gpointer user_data);

The signature of the callback called by tp_dbus_daemon_watch_name_owner().

daemon :

The D-Bus daemon

name :

The name whose ownership has changed or been discovered

new_owner :

The unique name that now owns name

user_data :

Arbitrary user-supplied data as passed to tp_dbus_daemon_watch_name_owner()

Since 0.7.1


tp_dbus_daemon_watch_name_owner ()

void                tp_dbus_daemon_watch_name_owner     (TpDBusDaemon *self,
                                                         const gchar *name,
                                                         TpDBusDaemonNameOwnerChangedCb callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy);

Arrange for callback to be called with the owner of name as soon as possible (which might even be before this function returns!), then again every time the ownership of name changes.

If multiple watches are registered for the same name, they will be called in the order they were registered.

self :

The D-Bus daemon

name :

The name whose ownership is to be watched

callback :

Callback to call when the ownership is discovered or changes

user_data :

Arbitrary data to pass to callback

destroy :

Called to destroy user_data when the name owner watch is cancelled due to tp_dbus_daemon_cancel_name_owner_watch()

Since 0.7.1


tp_dbus_daemon_cancel_name_owner_watch ()

gboolean            tp_dbus_daemon_cancel_name_owner_watch
                                                        (TpDBusDaemon *self,
                                                         const gchar *name,
                                                         TpDBusDaemonNameOwnerChangedCb callback,
                                                         gconstpointer user_data);

If there was a previous call to tp_dbus_daemon_watch_name_owner() with exactly the given name, callback and user_data, remove it.

If more than one watch matching the details provided was active, remove only the most recently added one.

self :

the D-Bus daemon

name :

the name that was being watched

callback :

the callback that was called

user_data :

the user data that was provided

Returns :

TRUE if there was such a watch, FALSE otherwise

Since 0.7.1


tp_cli_dbus_daemon_call_add_match ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_add_match   (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_add_match callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a AddMatch method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_get_connection_se_linux_security_context ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_get_connection_se_linux_security_context
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_connection_se_linux_security_context callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a GetConnectionSELinuxSecurityContext method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_get_connection_unix_process_id ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_get_connection_unix_process_id
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_connection_unix_process_id callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a GetConnectionUnixProcessID method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_get_connection_unix_user ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_get_connection_unix_user
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_connection_unix_user callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a GetConnectionUnixUser method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_get_id ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_get_id      (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_get_id callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a GetId method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_get_name_owner ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_get_name_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_get_name_owner callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a GetNameOwner method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_hello ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_hello       (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_hello callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a Hello method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_list_activatable_names ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_list_activatable_names
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_list_activatable_names callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a ListActivatableNames method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_list_names ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_list_names  (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_list_names callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a ListNames method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_list_queued_owners ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_list_queued_owners
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_list_queued_owners callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a ListQueuedOwners method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_name_has_owner ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_name_has_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_name_has_owner callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a NameHasOwner method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_release_name ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_release_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_release_name callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a ReleaseName method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_reload_config ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_reload_config
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         tp_cli_dbus_daemon_callback_for_reload_config callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a ReloadConfig method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_remove_match ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_remove_match
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         tp_cli_dbus_daemon_callback_for_remove_match callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a RemoveMatch method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_request_name ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_request_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         tp_cli_dbus_daemon_callback_for_request_name callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a RequestName method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

in1 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_call_start_service_by_name ()

TpProxyPendingCall* tp_cli_dbus_daemon_call_start_service_by_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         tp_cli_dbus_daemon_callback_for_start_service_by_name callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object);

Start a StartServiceByName method call.

(Undocumented)

proxy :

the TpProxy

timeout_ms :

the timeout in milliseconds, or -1 to use the default

in0 :

Used to pass an 'in' argument: (Undocumented)

in1 :

Used to pass an 'in' argument: (Undocumented)

callback :

called when the method call succeeds or fails; may be NULL to make a "fire and forget" call with no reply tracking

user_data :

user-supplied data passed to the callback; must be NULL if callback is NULL

destroy :

called with the user_data as argument, after the call has succeeded, failed or been cancelled; must be NULL if callback is NULL

weak_object :

If not NULL, a GObject which will be weakly referenced; if it is destroyed, this call will automatically be cancelled. Must be NULL if callback is NULL

Returns :

a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.

tp_cli_dbus_daemon_run_add_match ()

gboolean            tp_cli_dbus_daemon_run_add_match    (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method AddMatch and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_get_connection_se_linux_security_context ()

gboolean            tp_cli_dbus_daemon_run_get_connection_se_linux_security_context
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         GArray **out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method GetConnectionSELinuxSecurityContext and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_get_connection_unix_process_id ()

gboolean            tp_cli_dbus_daemon_run_get_connection_unix_process_id
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method GetConnectionUnixProcessID and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_get_connection_unix_user ()

gboolean            tp_cli_dbus_daemon_run_get_connection_unix_user
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method GetConnectionUnixUser and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_get_id ()

gboolean            tp_cli_dbus_daemon_run_get_id       (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar **out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method GetId and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_get_name_owner ()

gboolean            tp_cli_dbus_daemon_run_get_name_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         gchar **out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method GetNameOwner and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_hello ()

gboolean            tp_cli_dbus_daemon_run_hello        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar **out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method Hello and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_list_activatable_names ()

gboolean            tp_cli_dbus_daemon_run_list_activatable_names
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar ***out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method ListActivatableNames and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_list_names ()

gboolean            tp_cli_dbus_daemon_run_list_names   (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         gchar ***out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method ListNames and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_list_queued_owners ()

gboolean            tp_cli_dbus_daemon_run_list_queued_owners
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         gchar ***out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method ListQueuedOwners and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_name_has_owner ()

gboolean            tp_cli_dbus_daemon_run_name_has_owner
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         gboolean *out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method NameHasOwner and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_release_name ()

gboolean            tp_cli_dbus_daemon_run_release_name (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method ReleaseName and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_reload_config ()

gboolean            tp_cli_dbus_daemon_run_reload_config
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method ReloadConfig and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_remove_match ()

gboolean            tp_cli_dbus_daemon_run_remove_match (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method RemoveMatch and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_request_name ()

gboolean            tp_cli_dbus_daemon_run_request_name (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method RequestName and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

in1 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_run_start_service_by_name ()

gboolean            tp_cli_dbus_daemon_run_start_service_by_name
                                                        (TpDBusDaemon *proxy,
                                                         gint timeout_ms,
                                                         const gchar *in0,
                                                         guint in1,
                                                         guint *out0,
                                                         GError **error,
                                                         GMainLoop **loop);

Call the method StartServiceByName and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

timeout_ms :

Timeout in milliseconds, or -1 for default

in0 :

Used to pass an 'in' argument: (Undocumented)

in1 :

Used to pass an 'in' argument: (Undocumented)

out0 :

Used to return an 'out' argument if TRUE is returned: (Undocumented)

error :

If not NULL, used to return errors if FALSE is returned

loop :

If not NULL, set before re-entering the main loop, to point to a GMainLoop which can be used to cancel this call with g_main_loop_quit(), causing a return of FALSE with error set to TP_DBUS_ERROR_CANCELLED

Returns :

TRUE on success, FALSE and sets error on error

tp_cli_dbus_daemon_callback_for_add_match ()

void                (*tp_cli_dbus_daemon_callback_for_add_match)
                                                        (TpDBusDaemon *proxy,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a AddMatch method call succeeds or fails.

proxy :

the proxy on which the call was made

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_get_connection_se_linux_security_context ()

void                (*tp_cli_dbus_daemon_callback_for_get_connection_se_linux_security_context)
                                                        (TpDBusDaemon *proxy,
                                                         const GArray *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a GetConnectionSELinuxSecurityContext method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_get_connection_unix_process_id ()

void                (*tp_cli_dbus_daemon_callback_for_get_connection_unix_process_id)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a GetConnectionUnixProcessID method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_get_connection_unix_user ()

void                (*tp_cli_dbus_daemon_callback_for_get_connection_unix_user)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a GetConnectionUnixUser method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_get_id ()

void                (*tp_cli_dbus_daemon_callback_for_get_id)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a GetId method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_get_name_owner ()

void                (*tp_cli_dbus_daemon_callback_for_get_name_owner)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a GetNameOwner method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_hello ()

void                (*tp_cli_dbus_daemon_callback_for_hello)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a Hello method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_list_activatable_names ()

void                (*tp_cli_dbus_daemon_callback_for_list_activatable_names)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar **out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a ListActivatableNames method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_list_names ()

void                (*tp_cli_dbus_daemon_callback_for_list_names)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar **out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a ListNames method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_list_queued_owners ()

void                (*tp_cli_dbus_daemon_callback_for_list_queued_owners)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar **out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a ListQueuedOwners method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_name_has_owner ()

void                (*tp_cli_dbus_daemon_callback_for_name_has_owner)
                                                        (TpDBusDaemon *proxy,
                                                         gboolean out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a NameHasOwner method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_release_name ()

void                (*tp_cli_dbus_daemon_callback_for_release_name)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a ReleaseName method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_reload_config ()

void                (*tp_cli_dbus_daemon_callback_for_reload_config)
                                                        (TpDBusDaemon *proxy,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a ReloadConfig method call succeeds or fails.

proxy :

the proxy on which the call was made

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_remove_match ()

void                (*tp_cli_dbus_daemon_callback_for_remove_match)
                                                        (TpDBusDaemon *proxy,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a RemoveMatch method call succeeds or fails.

proxy :

the proxy on which the call was made

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_request_name ()

void                (*tp_cli_dbus_daemon_callback_for_request_name)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a RequestName method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_callback_for_start_service_by_name ()

void                (*tp_cli_dbus_daemon_callback_for_start_service_by_name)
                                                        (TpDBusDaemon *proxy,
                                                         guint out0,
                                                         const GError *error,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Signature of the callback called when a StartServiceByName method call succeeds or fails.

proxy :

the proxy on which the call was made

out0 :

Used to return an 'out' argument if error is NULL: (Undocumented)

error :

NULL on success, or an error on failure

user_data :

user-supplied data

weak_object :

user-supplied object

tp_cli_dbus_daemon_connect_to_name_acquired ()

TpProxySignalConnection* tp_cli_dbus_daemon_connect_to_name_acquired
                                                        (TpDBusDaemon *proxy,
                                                         tp_cli_dbus_daemon_signal_callback_name_acquired callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object,
                                                         GError **error);

Connect a handler to the signal NameAcquired.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

callback :

Callback to be called when the signal is received

user_data :

User-supplied data for the callback

destroy :

Destructor for the user-supplied data, which will be called when this signal is disconnected, or before this function returns NULL

weak_object :

A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected

error :

If not NULL, used to raise an error if NULL is returned

Returns :

a TpProxySignalConnection containing all of the above, which can be used to disconnect the signal; or NULL if the proxy does not have the desired interface or has become invalid.

tp_cli_dbus_daemon_connect_to_name_lost ()

TpProxySignalConnection* tp_cli_dbus_daemon_connect_to_name_lost
                                                        (TpDBusDaemon *proxy,
                                                         tp_cli_dbus_daemon_signal_callback_name_lost callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object,
                                                         GError **error);

Connect a handler to the signal NameLost.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

callback :

Callback to be called when the signal is received

user_data :

User-supplied data for the callback

destroy :

Destructor for the user-supplied data, which will be called when this signal is disconnected, or before this function returns NULL

weak_object :

A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected

error :

If not NULL, used to raise an error if NULL is returned

Returns :

a TpProxySignalConnection containing all of the above, which can be used to disconnect the signal; or NULL if the proxy does not have the desired interface or has become invalid.

tp_cli_dbus_daemon_connect_to_name_owner_changed ()

TpProxySignalConnection* tp_cli_dbus_daemon_connect_to_name_owner_changed
                                                        (TpDBusDaemon *proxy,
                                                         tp_cli_dbus_daemon_signal_callback_name_owner_changed callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy,
                                                         GObject *weak_object,
                                                         GError **error);

Connect a handler to the signal NameOwnerChanged.

(Undocumented)

proxy :

A TpDBusDaemon or subclass

callback :

Callback to be called when the signal is received

user_data :

User-supplied data for the callback

destroy :

Destructor for the user-supplied data, which will be called when this signal is disconnected, or before this function returns NULL

weak_object :

A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected

error :

If not NULL, used to raise an error if NULL is returned

Returns :

a TpProxySignalConnection containing all of the above, which can be used to disconnect the signal; or NULL if the proxy does not have the desired interface or has become invalid.

tp_cli_dbus_daemon_signal_callback_name_acquired ()

void                (*tp_cli_dbus_daemon_signal_callback_name_acquired)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *arg0,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Represents the signature of a callback for the signal NameAcquired.

proxy :

The proxy on which tp_cli_dbus_daemon_connect_to_name_acquired() was called

arg0 :

(Undocumented)

user_data :

User-supplied data

weak_object :

User-supplied weakly referenced object

tp_cli_dbus_daemon_signal_callback_name_lost ()

void                (*tp_cli_dbus_daemon_signal_callback_name_lost)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *arg0,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Represents the signature of a callback for the signal NameLost.

proxy :

The proxy on which tp_cli_dbus_daemon_connect_to_name_lost() was called

arg0 :

(Undocumented)

user_data :

User-supplied data

weak_object :

User-supplied weakly referenced object

tp_cli_dbus_daemon_signal_callback_name_owner_changed ()

void                (*tp_cli_dbus_daemon_signal_callback_name_owner_changed)
                                                        (TpDBusDaemon *proxy,
                                                         const gchar *arg0,
                                                         const gchar *arg1,
                                                         const gchar *arg2,
                                                         gpointer user_data,
                                                         GObject *weak_object);

Represents the signature of a callback for the signal NameOwnerChanged.

proxy :

The proxy on which tp_cli_dbus_daemon_connect_to_name_owner_changed() was called

arg0 :

(Undocumented)

arg1 :

(Undocumented)

arg2 :

(Undocumented)

user_data :

User-supplied data

weak_object :

User-supplied weakly referenced object