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.
47 lines
947 B
C++
47 lines
947 B
C++
#include <QBindingStatus>
|
|
#include <QBindingStorage>
|
|
#include <QUntypedPropertyData>
|
|
#include <qbindingstorage.h>
|
|
#include "gen_qbindingstorage.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
void QBindingStatus_Delete(QBindingStatus* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QBindingStatus*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
QBindingStorage* QBindingStorage_new() {
|
|
return new QBindingStorage();
|
|
}
|
|
|
|
bool QBindingStorage_IsEmpty(QBindingStorage* self) {
|
|
return self->isEmpty();
|
|
}
|
|
|
|
bool QBindingStorage_IsValid(const QBindingStorage* self) {
|
|
return self->isValid();
|
|
}
|
|
|
|
void QBindingStorage_RegisterDependency(const QBindingStorage* self, QUntypedPropertyData* data) {
|
|
self->registerDependency(data);
|
|
}
|
|
|
|
void QBindingStorage_Delete(QBindingStorage* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QBindingStorage*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|