[glibmm] TlsDatabase: Add a TODO to wrap virtual functions.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] TlsDatabase: Add a TODO to wrap virtual functions.
- Date: Fri, 4 Jan 2013 03:32:14 +0000 (UTC)
commit 36972b40f8c9652a2f05bafe11ff62cbad05671c
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Thu Jan 3 15:27:39 2013 -0500
TlsDatabase: Add a TODO to wrap virtual functions.
* gio/src/tlsdatabase.hg: Add the virtual functions but as a TODO so
that the parameters can be properly ordered according to the order in
the methods.
* gio/src/gio_vfuncs.defs: Add the virtual function definitions for
when the vfuncs are wrapped.
* gio/src/tlscertificate.hg: Do not wrap a write-only construct-only
property.
ChangeLog | 13 ++++
gio/src/gio_vfuncs.defs | 150 +++++++++++++++++++++++++++++++++++++++++++++
gio/src/tlscertificate.hg | 3 +-
gio/src/tlsdatabase.hg | 16 +++++
4 files changed, 181 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c281e07..9ebe5b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
2013-01-03 Josà Alburquerque <jaalburquerque gmail com>
+ TlsDatabase: Add a TODO to wrap virtual functions.
+
+ * gio/src/tlsdatabase.hg: Add the virtual functions but as a TODO so
+ that the parameters can be properly ordered according to the order in
+ the methods.
+ * gio/src/gio_vfuncs.defs: Add the virtual function definitions for
+ when the vfuncs are wrapped.
+
+ * gio/src/tlscertificate.hg: Do not wrap a write-only construct-only
+ property.
+
+2013-01-03 Josà Alburquerque <jaalburquerque gmail com>
+
TlsDatabase: Reorder parameters so that flags can have defaults.
* gio/src/tlsdatabase.hg (lookup_certificate_issuer):
diff --git a/gio/src/gio_vfuncs.defs b/gio/src/gio_vfuncs.defs
index 19b5c88..ca8d7e3 100644
--- a/gio/src/gio_vfuncs.defs
+++ b/gio/src/gio_vfuncs.defs
@@ -725,6 +725,156 @@
)
)
+; GTlsDatabase
+
+(define-vfunc verify_chain
+ (of-object "GTlsDatabase")
+ (return-type "GTlsCertificateFlags")
+ (parameters
+ '("GTlsCertificate*" "chain")
+ '("const-gchar*" "purpose")
+ '("GSocketConnectable*" "identity")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseVerifyFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc verify_chain_async
+ (of-object "GTlsDatabase")
+ (return-type "void")
+ (parameters
+ '("GTlsCertificate*" "chain")
+ '("const-gchar*" "purpose")
+ '("GSocketConnectable*" "identity")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseVerifyFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc verify_chain_finish
+ (of-object "GTlsDatabase")
+ (return-type "GTlsCertificateFlags")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc create_certificate_handle
+ (of-object "GTlsDatabase")
+ (return-type "gchar*")
+ (parameters
+ '("GTlsCertificate*" "certificate")
+ )
+)
+
+(define-vfunc lookup_certificate_for_handle
+ (of-object "GTlsDatabase")
+ (return-type "GTlsCertificate*")
+ (parameters
+ '("const-gchar*" "handle")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseLookupFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc lookup_certificate_for_handle_async
+ (of-object "GTlsDatabase")
+ (return-type "void")
+ (parameters
+ '("const-gchar*" "handle")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseLookupFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc lookup_certificate_for_handle_finish
+ (of-object "GTlsDatabase")
+ (return-type "GTlsCertificate*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc lookup_certificate_issuer
+ (of-object "GTlsDatabase")
+ (return-type "GTlsCertificate*")
+ (parameters
+ '("GTlsCertificate*" "certificate")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseLookupFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc lookup_certificate_issuer_async
+ (of-object "GTlsDatabase")
+ (return-type "void")
+ (parameters
+ '("GTlsCertificate*" "certificate")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseLookupFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc lookup_certificate_issuer_finish
+ (of-object "GTlsDatabase")
+ (return-type "GTlsCertificate*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc lookup_certificates_issued_by
+ (of-object "GTlsDatabase")
+ (return-type "GList*")
+ (parameters
+ '("GByteArray*" "issuer_raw_dn")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseLookupFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc lookup_certificates_issued_by_async
+ (of-object "GTlsDatabase")
+ (return-type "void")
+ (parameters
+ '("GByteArray*" "issuer_raw_dn")
+ '("GTlsInteraction*" "interaction")
+ '("GTlsDatabaseLookupFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc lookup_certificates_issued_by_finish
+ (of-object "GTlsDatabase")
+ (return-type "GList*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
; GTlsInteraction
(define-vfunc ask_password
diff --git a/gio/src/tlscertificate.hg b/gio/src/tlscertificate.hg
index d4aebcf..98e581f 100644
--- a/gio/src/tlscertificate.hg
+++ b/gio/src/tlscertificate.hg
@@ -68,7 +68,8 @@ public:
//TODO: _WRAP_PROPERTY("private-key", GByteArray*)
- _WRAP_PROPERTY("private-key-pem", char*)
+ // Write-only and construct-only
+ //_WRAP_PROPERTY("private-key-pem", char*)
};
} // namespace Gio
diff --git a/gio/src/tlsdatabase.hg b/gio/src/tlsdatabase.hg
index 0976f15..10f5e4a 100644
--- a/gio/src/tlsdatabase.hg
+++ b/gio/src/tlsdatabase.hg
@@ -75,6 +75,22 @@ public:
_WRAP_METHOD(void lookup_certificate_for_handle_async(const Glib::ustring& handle, const Glib::RefPtr<TlsInteraction>& interaction, const SlotAsyncReady& slot{callback}, const Glib::RefPtr<Cancellable>& cancellable{.?}, TlsDatabaseLookupFlags flags{.} = TLS_DATABASE_LOOKUP_NONE), g_tls_database_lookup_certificate_for_handle_async, slot_name slot, slot_callback SignalProxy_async_callback)
_WRAP_METHOD(Glib::RefPtr<TlsCertificate> lookup_certificate_for_handle_finish(const Glib::RefPtr<AsyncResult>& result), g_tls_database_lookup_certificate_for_handle_finish, errthrow)
+
+/* TODO:
+ _WRAP_VFUNC(TlsCertificateFlags verify_chain(const Glib::RefPtr<TlsCertificate>& chain, const Glib::ustring& purpose, const Glib::RefPtr<SocketConnectable>& identity, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseVerifyFlags flags, const Glib::RefPtr<Cancellable>& cancellable), "verify_chain", errthrow)
+ _WRAP_VFUNC(void verify_chain_async(const Glib::RefPtr<TlsCertificate>& chain, const Glib::ustring& purpose, const Glib::RefPtr<SocketConnectable>& identity, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseVerifyFlags flags, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, gpointer user_data), "verify_chain_async")
+ _WRAP_VFUNC(TlsCertificateFlags verify_chain_finish(const Glib::RefPtr<AsyncResult>& result), "verify_chain_finish", errthrow)
+ _WRAP_VFUNC(Glib::ustring create_certificate_handle(const Glib::RefPtr<TlsCertificate>& certificate), "create_certificate_handle")
+ _WRAP_VFUNC(Glib::RefPtr<TlsCertificate> lookup_certificate_for_handle(const Glib::ustring& handle, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseLookupFlags flags, const Glib::RefPtr<Cancellable>& cancellable), "lookup_certificate_for_handle", errthrow)
+ _WRAP_VFUNC(void lookup_certificate_for_handle_async(const Glib::ustring& handle, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseLookupFlags flags, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, gpointer user_data), "lookup_certificate_for_handle_async")
+ _WRAP_VFUNC(Glib::RefPtr<TlsCertificate> lookup_certificate_for_handle_finish(const Glib::RefPtr<AsyncResult>& result), "lookup_certificate_for_handle_finish", errthrow)
+ _WRAP_VFUNC(Glib::RefPtr<TlsCertificate> lookup_certificate_issuer(const Glib::RefPtr<TlsCertificate>& certificate, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseLookupFlags flags, const Glib::RefPtr<Cancellable>& cancellable), "lookup_certificate_issuer", errthrow)
+ _WRAP_VFUNC(void lookup_certificate_issuer_async(const Glib::RefPtr<TlsCertificate>& certificate, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseLookupFlags flags, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, gpointer user_data), "lookup_certificate_issuer_async")
+ _WRAP_VFUNC(Glib::RefPtr<TlsCertificate> lookup_certificate_issuer_finish(const Glib::RefPtr<AsyncResult>& result), "lookup_certificate_issuer_finish", errthrow)
+ _WRAP_VFUNC(GList* lookup_certificates_issued_by(GByteArray* issuer_raw_dn, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseLookupFlags flags, const Glib::RefPtr<Cancellable>& cancellable), "lookup_certificates_issued_by", errthrow)
+ _WRAP_VFUNC(void lookup_certificates_issued_by_async(GByteArray* issuer_raw_dn, const Glib::RefPtr<TlsInteraction>& interaction, TlsDatabaseLookupFlags flags, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, gpointer user_data), "lookup_certificates_issued_by_async")
+ _WRAP_VFUNC(GList* lookup_certificates_issued_by_finish(const Glib::RefPtr<AsyncResult>& result), "lookup_certificates_issued_by_finish", errthrow)
+*/
};
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]