summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-connection.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-01-28 11:30:02 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-01-28 11:30:02 +0000
commit0a25436a8caa2579eb3a29d933b3ba8d093e0ac1 (patch)
tree3ce404d02eaeedad287e5cba228b218f8f50be30 /telepathy-glib/base-connection.h
parente5532f0138978e0936fa9c4445ffe96f1c005a8f (diff)
downloadtelepathy-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.h10
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);