mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
21 lines
472 B
C++
21 lines
472 B
C++
#include <QJsonObject>
|
|
#include <QStaticPlugin>
|
|
#include "qplugin.h"
|
|
|
|
#include "gen_qplugin.h"
|
|
|
|
extern "C" {
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
}
|
|
|
|
QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self) {
|
|
QJsonObject ret = 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;
|
|
}
|
|
|