mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 06:00:38 +00:00
a0c6344ecd
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.
26 lines
453 B
C++
26 lines
453 B
C++
#include <QJsonObject>
|
|
#include <QStaticPlugin>
|
|
#include <qplugin.h>
|
|
#include "gen_qplugin.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self) {
|
|
return new QJsonObject(self->metaData());
|
|
}
|
|
|
|
void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QStaticPlugin*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|