miqt/qt/gen_qplugin.cpp

21 lines
500 B
C++
Raw Normal View History

#include <QJsonObject>
#include <QStaticPlugin>
2024-08-29 07:01:51 +00:00
#include "qplugin.h"
2024-08-29 07:01:51 +00:00
#include "gen_qplugin.h"
extern "C" {
extern void miqt_exec_callback(void* cb, int argc, void* argv);
}
QJsonObject* QStaticPlugin_MetaData(QStaticPlugin* self) {
2024-08-29 07:01:51 +00:00
QJsonObject ret = const_cast<const QStaticPlugin*>(self)->metaData();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonObject*>(new QJsonObject(ret));
}
void QStaticPlugin_Delete(QStaticPlugin* self) {
delete self;
}