telepathy-glib: Deprecate TpIntSet, TpIntSetIter and TpIntSetFastIter

Simon McVittie smcv at kemper.freedesktop.org
Thu May 3 05:12:46 PDT 2012


Module: telepathy-glib
Branch: master
Commit: 55c45e9b080a3d1ce08f3b9bb68629334b570601
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=55c45e9b080a3d1ce08f3b9bb68629334b570601

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed May  2 19:32:57 2012 +0100

Deprecate TpIntSet, TpIntSetIter and TpIntSetFastIter

---

 telepathy-glib/intset.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/intset.h b/telepathy-glib/intset.h
index 9ac73c0..36bf0fb 100644
--- a/telepathy-glib/intset.h
+++ b/telepathy-glib/intset.h
@@ -32,6 +32,7 @@ GType tp_intset_get_type (void);
 
 typedef struct _TpIntset TpIntset;
 
+#ifndef TP_DISABLE_DEPRECATED
 /* See fdo#30134 for the reasoning behind the rename of TpIntSet to TpIntset */
 
 /**
@@ -41,6 +42,7 @@ typedef struct _TpIntset TpIntset;
  * now just a backwards compatibility typedef.
  */
 typedef TpIntset TpIntSet;
+#endif
 
 typedef void (*TpIntFunc) (guint i, gpointer userdata);
 
@@ -83,6 +85,7 @@ typedef struct {
     guint element;
 } TpIntsetIter;
 
+#ifndef TP_DISABLE_DEPRECATED
 /**
  * TpIntSetIter: (skip)
  *
@@ -90,6 +93,7 @@ typedef struct {
  * it's now just a backwards compatibility typedef.
  */
 typedef TpIntsetIter TpIntSetIter;
+#endif
 
 #define TP_INTSET_ITER_INIT(set) { (set), (guint)(-1) }
 void tp_intset_iter_init (TpIntsetIter *iter, const TpIntset *set);
@@ -101,6 +105,7 @@ typedef struct {
     gpointer _dummy[16];
 } TpIntsetFastIter;
 
+#ifndef TP_DISABLE_DEPRECATED
 /**
  * TpIntSetFastIter: (skip)
  *
@@ -108,6 +113,7 @@ typedef struct {
  * but it's now just a backwards compatibility typedef.
  */
 typedef TpIntsetFastIter TpIntSetFastIter;
+#endif
 
 void tp_intset_fast_iter_init (TpIntsetFastIter *iter,
     const TpIntset *set);



More information about the telepathy-commits mailing list