#include #include #include #include #include #include "gen_qwebengineclientcertificatestore.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" void QWebEngineClientCertificateStore_Add(QWebEngineClientCertificateStore* self, QSslCertificate* certificate, QSslKey* privateKey) { self->add(*certificate, *privateKey); } struct miqt_array /* of QSslCertificate* */ QWebEngineClientCertificateStore_Certificates(const QWebEngineClientCertificateStore* self) { QList _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 QWebEngineClientCertificateStore_Remove(QWebEngineClientCertificateStore* self, QSslCertificate* certificate) { self->remove(*certificate); } void QWebEngineClientCertificateStore_Clear(QWebEngineClientCertificateStore* self) { self->clear(); }