miqt/qt6/network/gen_qocspresponse.cpp
Jacek Sieka a0c6344ecd Avoid dependency on exported go header
The expected type of the callback is already known from the AST - this
change reduces dependency on cgo specifics and makes the generated C ABI
entirely cgo-independent - in particular, there is no need to include
`_cgo_export.h` any more.
2025-01-07 12:55:40 +01:00

56 lines
1.2 KiB
C++

#include <QOcspResponse>
#include <QSslCertificate>
#include <qocspresponse.h>
#include "gen_qocspresponse.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QOcspResponse* QOcspResponse_new() {
return new QOcspResponse();
}
QOcspResponse* QOcspResponse_new2(QOcspResponse* other) {
return new QOcspResponse(*other);
}
void QOcspResponse_OperatorAssign(QOcspResponse* self, QOcspResponse* other) {
self->operator=(*other);
}
int QOcspResponse_CertificateStatus(const QOcspResponse* self) {
QOcspCertificateStatus _ret = self->certificateStatus();
return static_cast<int>(_ret);
}
int QOcspResponse_RevocationReason(const QOcspResponse* self) {
QOcspRevocationReason _ret = self->revocationReason();
return static_cast<int>(_ret);
}
QSslCertificate* QOcspResponse_Responder(const QOcspResponse* self) {
return new QSslCertificate(self->responder());
}
QSslCertificate* QOcspResponse_Subject(const QOcspResponse* self) {
return new QSslCertificate(self->subject());
}
void QOcspResponse_Swap(QOcspResponse* self, QOcspResponse* other) {
self->swap(*other);
}
void QOcspResponse_Delete(QOcspResponse* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QOcspResponse*>( self );
} else {
delete self;
}
}