telepathy-qt: Farsight: Deprecate Farsight

Dario Freddi drf at kemper.freedesktop.org
Fri Jul 13 10:43:08 PDT 2012


Module: telepathy-qt
Branch: master
Commit: 3dd7cb3921f0a4a1a8724541887e3c9ef48a2b1e
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=3dd7cb3921f0a4a1a8724541887e3c9ef48a2b1e

Author: Dario Freddi <dario.freddi at collabora.com>
Date:   Fri Jul 13 17:43:40 2012 +0200

Farsight: Deprecate Farsight

---

 TelepathyQt/Farsight/channel.h |    2 +-
 TelepathyQt/Farsight/global.h  |   12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt/Farsight/channel.h b/TelepathyQt/Farsight/channel.h
index bc112c2..97119bf 100644
--- a/TelepathyQt/Farsight/channel.h
+++ b/TelepathyQt/Farsight/channel.h
@@ -36,7 +36,7 @@ typedef struct _TfChannel TfChannel;
 namespace Tp
 {
 
-TP_QT_FS_EXPORT TfChannel *createFarsightChannel(const StreamedMediaChannelPtr &channel);
+TP_QT_FS_DEPRECATED TP_QT_FS_EXPORT TfChannel *createFarsightChannel(const StreamedMediaChannelPtr &channel);
 
 } // Tp
 
diff --git a/TelepathyQt/Farsight/global.h b/TelepathyQt/Farsight/global.h
index 2d5c110..9a38238 100644
--- a/TelepathyQt/Farsight/global.h
+++ b/TelepathyQt/Farsight/global.h
@@ -43,4 +43,16 @@
 #  define TP_QT_FS_NO_EXPORT
 #endif
 
+#ifndef TP_QT_FS_DEPRECATED
+#  ifdef TP_QT_DEPRECATED_WARNINGS
+#    ifdef BUILDING_TP_QT_FARSIGHT
+#      define TP_QT_FS_DEPRECATED
+#    else
+#      define TP_QT_FS_DEPRECATED Q_DECL_DEPRECATED
+#    endif
+#  else
+#    define TP_QT_FS_DEPRECATED
+#  endif
+#endif
+
 #endif



More information about the telepathy-commits mailing list