diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-01-28 11:30:02 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-01-28 11:30:02 +0000 |
commit | 0a25436a8caa2579eb3a29d933b3ba8d093e0ac1 (patch) | |
tree | 3ce404d02eaeedad287e5cba228b218f8f50be30 /telepathy-glib/base-connection.h | |
parent | e5532f0138978e0936fa9c4445ffe96f1c005a8f (diff) | |
download | telepathy-glib-0a25436a8caa2579eb3a29d933b3ba8d093e0ac1.tar.gz |
Add a simple C binding for ConnectionError
Unfortunately, dbus-glib doesn't expose the algorithm it uses to
map from a GError to a D-Bus error name, so we can't just take a
GError as argument. When that's fixed, we can add a version that
takes a GError, so I've reserved the simpler name for that.
Diffstat (limited to 'telepathy-glib/base-connection.h')
-rw-r--r-- | telepathy-glib/base-connection.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/telepathy-glib/base-connection.h b/telepathy-glib/base-connection.h index 2aa9cf2db..94b62f64b 100644 --- a/telepathy-glib/base-connection.h +++ b/telepathy-glib/base-connection.h @@ -115,6 +115,16 @@ gboolean tp_base_connection_register (TpBaseConnection *self, const gchar *cm_name, gchar **bus_name, gchar **object_path, GError **error); +/* FIXME: when dbus-glib exposes its GError -> D-Bus error name mapping, +we could also add: +void tp_base_connection_disconnect_with_error (TpBaseConnection *self, + const GError *error, GHashTable *details, TpConnectionStatusReason reason); +*/ + +void tp_base_connection_disconnect_with_dbus_error (TpBaseConnection *self, + const gchar *error_name, GHashTable *details, + TpConnectionStatusReason reason); + void tp_base_connection_change_status (TpBaseConnection *self, TpConnectionStatus status, TpConnectionStatusReason reason); |