summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-02 19:06:32 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-02 20:19:36 +0100
commit7bffcf1b5047938fe50feed425323e51e4b6a217 (patch)
tree4a5d47387dfcef39aabd22b8284b3e9ba03224b0
parent9aec808ae99f5b06c816943fc1648358af0d8294 (diff)
Emit deprecation warnings for TP_ERRORS
-rw-r--r--telepathy-glib/errors.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/telepathy-glib/errors.h b/telepathy-glib/errors.h
index 73e7da22f..c0cc14198 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);