[Telepathy-commits] [telepathy-glib/master] Add TP_DBUS_ERROR_INCONSISTENT

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Oct 7 07:04:42 PDT 2008


This can be used to turn obvious failures (like RequestHandles returning the wrong number of handles) into an error.
---
 telepathy-glib/proxy.c |    6 +++++-
 telepathy-glib/proxy.h |    1 +
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c
index 7f90b1a..f7f21e3 100644
--- a/telepathy-glib/proxy.c
+++ b/telepathy-glib/proxy.c
@@ -90,7 +90,11 @@ tp_dbus_errors_quark (void)
  *  is available.
  * @TP_DBUS_ERROR_CANCELLED: Raised from calls that re-enter the main
  *  loop (*_run_*) if they are cancelled
- * @NUM_TP_DBUS_ERRORS: 1 more than the highest valid #TpDBusError
+ * @TP_DBUS_ERROR_INCONSISTENT: Raised if information received from a remote
+ *  object is inconsistent or otherwise obviously wrong
+ *  (added in 0.7.UNRELEASED)
+ * @NUM_TP_DBUS_ERRORS: 1 more than the highest valid #TpDBusError at the
+ *  time of compilation
  *
  * #GError codes for use with the %TP_DBUS_ERRORS domain.
  *
diff --git a/telepathy-glib/proxy.h b/telepathy-glib/proxy.h
index 8b73f51..97efa68 100644
--- a/telepathy-glib/proxy.h
+++ b/telepathy-glib/proxy.h
@@ -48,6 +48,7 @@ typedef enum {
     TP_DBUS_ERROR_INVALID_MEMBER_NAME = 7,
     TP_DBUS_ERROR_OBJECT_REMOVED = 8,
     TP_DBUS_ERROR_CANCELLED = 9,
+    TP_DBUS_ERROR_INCONSISTENT = 10,
     NUM_TP_DBUS_ERRORS
 } TpDBusError;
 
-- 
1.5.6.5



More information about the Telepathy-commits mailing list