miqt/qt/gen_qplugin.cpp

26 lines
453 B
C++
Raw Normal View History

#include <QJsonObject>
#include <QStaticPlugin>
#include <qplugin.h>
2024-08-29 19:01:51 +12:00
#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());
}
2024-11-19 19:29:06 +13:00
void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QStaticPlugin*>( self );
} else {
delete self;
}
}