mirror of
https://github.com/mappu/miqt.git
synced 2025-02-08 14:10:22 +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
536 B
C++
26 lines
536 B
C++
#include <QMediaBindableInterface>
|
|
#include <QMediaObject>
|
|
#include <qmediabindableinterface.h>
|
|
#include "gen_qmediabindableinterface.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QMediaObject* QMediaBindableInterface_MediaObject(const QMediaBindableInterface* self) {
|
|
return self->mediaObject();
|
|
}
|
|
|
|
void QMediaBindableInterface_Delete(QMediaBindableInterface* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QMediaBindableInterface*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|