[glibmm] giomm: Wrap the GTlsError GError.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] giomm: Wrap the GTlsError GError.
- Date: Tue, 26 Mar 2013 02:16:19 +0000 (UTC)
commit 949313ead18dd3694d43b4928837a6a899bb767f
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Mon Mar 25 19:31:18 2013 -0400
giomm: Wrap the GTlsError GError.
* gio/src/error.hg: Wrap the GTlsError GError in this file.
* gio/src/tlsclientconnection.hg:
* gio/src/tlsconnection.hg: Have default true values for boolean
setter methods in these classes.
* gio/src/tlsfiledatabase.hg: Clarify a TODO.
* gio/src/dbuserror.hg: Whitespace.
ChangeLog | 13 +++++++++++++
gio/src/dbuserror.hg | 1 -
gio/src/error.hg | 1 +
gio/src/tlsclientconnection.hg | 2 +-
gio/src/tlsconnection.hg | 4 ++--
gio/src/tlsfiledatabase.hg | 5 ++---
6 files changed, 19 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b8d67a7..c069070 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2013-03-25 José Alburquerque <jaalburquerque gmail com>
+
+ giomm: Wrap the GTlsError GError.
+
+ * gio/src/error.hg: Wrap the GTlsError GError in this file.
+
+ * gio/src/tlsclientconnection.hg:
+ * gio/src/tlsconnection.hg: Have default true values for boolean
+ setter methods in these classes.
+
+ * gio/src/tlsfiledatabase.hg: Clarify a TODO.
+ * gio/src/dbuserror.hg: Whitespace.
+
2013-03-25 Murray Cumming <murrayc murrayc com>
Gio::SocketClient: Added some methods.
diff --git a/gio/src/dbuserror.hg b/gio/src/dbuserror.hg
index a68aa47..1e52dbb 100644
--- a/gio/src/dbuserror.hg
+++ b/gio/src/dbuserror.hg
@@ -35,4 +35,3 @@ _WRAP_GERROR(Error, GDBusError, G_DBUS_ERROR, NO_GTYPE)
} //namespace DBus
} // namespace Gio
-
diff --git a/gio/src/error.hg b/gio/src/error.hg
index 2381fe5..388b493 100644
--- a/gio/src/error.hg
+++ b/gio/src/error.hg
@@ -43,6 +43,7 @@ namespace Gio
*/
_WRAP_GERROR(Error, GIOErrorEnum, G_IO_ERROR, NO_GTYPE)
_WRAP_GERROR(ResolverError, GResolverError, G_RESOLVER_ERROR, NO_GTYPE)
+_WRAP_GERROR(TlsError, GTlsError, G_TLS_ERROR, NO_GTYPE)
} // namespace Gio
diff --git a/gio/src/tlsclientconnection.hg b/gio/src/tlsclientconnection.hg
index 0db96e8..2527d8c 100644
--- a/gio/src/tlsclientconnection.hg
+++ b/gio/src/tlsclientconnection.hg
@@ -55,7 +55,7 @@ public:
_WRAP_METHOD(void set_validation_flags(TlsCertificateFlags flags),
g_tls_client_connection_set_validation_flags)
_WRAP_METHOD(TlsCertificateFlags get_validation_flags() const,
g_tls_client_connection_get_validation_flags)
- _WRAP_METHOD(void set_use_ssl3(bool use_ssl3), g_tls_client_connection_set_use_ssl3)
+ _WRAP_METHOD(void set_use_ssl3(bool use_ssl3 = true), g_tls_client_connection_set_use_ssl3)
_WRAP_METHOD(bool get_use_ssl3() const, g_tls_client_connection_get_use_ssl3)
#m4 _CONVERSION(`GList*',`std::vector< Glib::RefPtr<Glib::ByteArray> >',`Glib::ListHandler<
Glib::RefPtr<Glib::ByteArray> >::list_to_vector($3, Glib::OWNERSHIP_DEEP)')
diff --git a/gio/src/tlsconnection.hg b/gio/src/tlsconnection.hg
index cc4519b..8740f7e 100644
--- a/gio/src/tlsconnection.hg
+++ b/gio/src/tlsconnection.hg
@@ -56,13 +56,13 @@ public:
_WRAP_METHOD(TlsCertificateFlags get_peer_certificate_errors() const,
g_tls_connection_get_peer_certificate_errors)
- _WRAP_METHOD(void set_require_close_notify(bool require_close_notify),
g_tls_connection_set_require_close_notify)
+ _WRAP_METHOD(void set_require_close_notify(bool require_close_notify = true),
g_tls_connection_set_require_close_notify)
_WRAP_METHOD(bool get_require_close_notify() const, g_tls_connection_get_require_close_notify)
_WRAP_METHOD(void set_rehandshake_mode(TlsRehandshakeMode mode), g_tls_connection_set_rehandshake_mode)
_WRAP_METHOD(TlsRehandshakeMode get_rehandshake_mode() const, g_tls_connection_get_rehandshake_mode)
- _WRAP_METHOD(void set_use_system_certdb(bool use_system_certdb), g_tls_connection_set_use_system_certdb)
+ _WRAP_METHOD(void set_use_system_certdb(bool use_system_certdb = true),
g_tls_connection_set_use_system_certdb)
_WRAP_METHOD(bool get_use_system_certdb() const, g_tls_connection_get_use_system_certdb)
_WRAP_METHOD(Glib::RefPtr<TlsDatabase> get_database(), g_tls_connection_get_database)
diff --git a/gio/src/tlsfiledatabase.hg b/gio/src/tlsfiledatabase.hg
index e5fe0f0..3a92906 100644
--- a/gio/src/tlsfiledatabase.hg
+++ b/gio/src/tlsfiledatabase.hg
@@ -41,9 +41,8 @@ class TlsFileDatabase : public Glib::Interface
public:
//TODO: Should this create() method be in TlsDatabase since the _new()
//function returns a GTlsDatabase?
- //TODO: Wrap this using _WRAP_CTR()/WRAP_CREATE() when the
- //g_tls_file_database_new() function does not do more than calling
- //g_initable_new().
+ //TODO: It is not possible to use _WRAP_CTR()/WRAP_CREATE() here because this
+ //class is an interface.
#m4 _CONVERSION(`GTlsDatabase*',`Glib::RefPtr<TlsFileDatabase>',`Glib::wrap(G_TLS_FILE_DATABASE($3))')
_WRAP_METHOD(static Glib::RefPtr<TlsFileDatabase> create(const Glib::ustring& anchors),
g_tls_file_database_new, errthrow)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]