telepathy-glib: Emit deprecation warnings for TP_ERRORS
Simon McVittie
smcv at kemper.freedesktop.org
Thu May 3 05:12:46 PDT 2012
Module: telepathy-glib
Branch: master
Commit: 7bffcf1b5047938fe50feed425323e51e4b6a217
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=7bffcf1b5047938fe50feed425323e51e4b6a217
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed May 2 19:06:32 2012 +0100
Emit deprecation warnings for TP_ERRORS
---
telepathy-glib/errors.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/telepathy-glib/errors.h b/telepathy-glib/errors.h
index 73e7da2..c0cc141 100644
--- a/telepathy-glib/errors.h
+++ b/telepathy-glib/errors.h
@@ -33,13 +33,16 @@ G_BEGIN_DECLS
#ifndef TP_DISABLE_DEPRECATED
_TP_DEPRECATED_FOR (TP_ERROR)
GQuark tp_errors_quark (void);
+
+/* this is deliberately the old one, so that it expands to a call to a
+ * deprecated function, so that gcc will warn */
+#define TP_ERRORS (tp_errors_quark ())
#endif
GQuark tp_error_quark (void);
#define TP_ERROR_PREFIX "org.freedesktop.Telepathy.Error"
-#define TP_ERRORS TP_ERROR
#define TP_ERROR (tp_error_quark ())
void tp_g_set_error_invalid_handle_type (guint type, GError **error);
More information about the telepathy-commits
mailing list