#include #include #include #include #include #include "gen_qwebengineclientcertificateselection.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" QWebEngineClientCertificateSelection* QWebEngineClientCertificateSelection_new(QWebEngineClientCertificateSelection* param1) { return new QWebEngineClientCertificateSelection(*param1); } void QWebEngineClientCertificateSelection_OperatorAssign(QWebEngineClientCertificateSelection* self, QWebEngineClientCertificateSelection* param1) { self->operator=(*param1); } QUrl* QWebEngineClientCertificateSelection_Host(const QWebEngineClientCertificateSelection* self) { return new QUrl(self->host()); } void QWebEngineClientCertificateSelection_Select(QWebEngineClientCertificateSelection* self, QSslCertificate* certificate) { self->select(*certificate); } void QWebEngineClientCertificateSelection_SelectNone(QWebEngineClientCertificateSelection* self) { self->selectNone(); } struct miqt_array /* of QSslCertificate* */ QWebEngineClientCertificateSelection_Certificates(const QWebEngineClientCertificateSelection* self) { QVector _ret = self->certificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QSslCertificate(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }