[glibmm] Gio::TlsServerConnection: Wrap it just like TlsClientConnection.



commit 237cdf9553a247f70fd2f94c1338af31270b1a7f
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Sun Apr 7 17:24:27 2013 -0400

    Gio::TlsServerConnection: Wrap it just like TlsClientConnection.
    
        * gio/src/tlsserverconnection.{ccg,hg}: Use a custom cast constructor
        just as in TlsClientConnection because this class too derives from
        Glib::Interface and Gio::TlsConnection though it only derives from
        GInterface in the C API.  It would have the same problems described in
        the commit fixing the TlsClientCOnnection class (the next to the last
        one).

 ChangeLog                       |   11 +++++++++++
 gio/src/tlsserverconnection.ccg |    9 +++++++++
 gio/src/tlsserverconnection.hg  |    1 +
 3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 446bba3..62d0629 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2013-04-07  José Alburquerque  <jaalburquerque gmail com>
 
+       Gio::TlsServerConnection: Wrap it just like TlsClientConnection.
+
+       * gio/src/tlsserverconnection.{ccg,hg}: Use a custom cast constructor
+       just as in TlsClientConnection because this class too derives from
+       Glib::Interface and Gio::TlsConnection though it only derives from
+       GInterface in the C API.  It would have the same problems described in
+       the commit fixing the TlsClientCOnnection class (the next to the last
+       one).
+
+2013-04-07  José Alburquerque  <jaalburquerque gmail com>
+
        Tests: Add a basic test for the Tls* API.
 
        * tests/giomm_tls_client/main.cc:  The test basically works though it
diff --git a/gio/src/tlsserverconnection.ccg b/gio/src/tlsserverconnection.ccg
index d76f332..c5d86a0 100644
--- a/gio/src/tlsserverconnection.ccg
+++ b/gio/src/tlsserverconnection.ccg
@@ -16,3 +16,12 @@
  */
 
 #include <gio/gio.h>
+
+namespace Gio
+{
+
+TlsServerConnection::TlsServerConnection(GTlsServerConnection* castitem)
+: TlsConnection(G_TLS_CONNECTION(castitem))
+{}
+
+} // namespace Gio
diff --git a/gio/src/tlsserverconnection.hg b/gio/src/tlsserverconnection.hg
index b44ba37..dbf1a41 100644
--- a/gio/src/tlsserverconnection.hg
+++ b/gio/src/tlsserverconnection.hg
@@ -38,6 +38,7 @@ namespace Gio
 class TlsServerConnection : public Glib::Interface, public TlsConnection
 {
   _CLASS_INTERFACE(TlsServerConnection, GTlsServerConnection, G_TLS_SERVER_CONNECTION, 
GTlsServerConnectionInterface)
+  _CUSTOM_CTOR_CAST
 
 public:
   //TODO: It's not possible to use _WRAP_CTOR/_WRAP_CREATE to wrap the new


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]