[next] telepathy-glib: TpBaseConnectionManagerClass: Seal protocol_params and new_connection members

Xavier Claessens xclaesse at kemper.freedesktop.org
Fri Jun 29 06:37:50 PDT 2012


Module: telepathy-glib
Branch: next
Commit: 94bb7f4948a25a583c62ff61f6c66098a87820c5
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=94bb7f4948a25a583c62ff61f6c66098a87820c5

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Tue Jun 26 12:54:59 2012 +0200

TpBaseConnectionManagerClass: Seal protocol_params and new_connection members

Those 2 struct members are now deprecated and implementations should
use TpBaseProtocol API instead.

---

 telepathy-glib/base-connection-manager.c |    3 ++-
 telepathy-glib/base-connection-manager.h |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/telepathy-glib/base-connection-manager.c b/telepathy-glib/base-connection-manager.c
index 241f511..4223318 100644
--- a/telepathy-glib/base-connection-manager.c
+++ b/telepathy-glib/base-connection-manager.c
@@ -229,7 +229,8 @@ _tp_legacy_protocol_new (TpBaseConnectionManager *cm,
  *
  * Changed in 0.11.11: protocol_params and new_connection may both be
  * %NULL. If so, this connection manager is assumed to use Protocol objects
- * instead.
+ * instead. Since 0.UNRELEASED those fields are deprecated and should not be
+ * used anymore.
  */
 
 /**
diff --git a/telepathy-glib/base-connection-manager.h b/telepathy-glib/base-connection-manager.h
index 8546e63..6658c69 100644
--- a/telepathy-glib/base-connection-manager.h
+++ b/telepathy-glib/base-connection-manager.h
@@ -67,8 +67,8 @@ struct _TpBaseConnectionManagerClass {
     GObjectClass parent_class;
 
     const char *cm_dbus_name;
-    const TpCMProtocolSpec *protocol_params;
-    TpBaseConnectionManagerNewConnFunc new_connection;
+    const TpCMProtocolSpec *_TP_SEAL (protocol_params);
+    TpBaseConnectionManagerNewConnFunc _TP_SEAL (new_connection);
 
     const gchar * const *interfaces;
 



More information about the telepathy-commits mailing list