diff options
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfs_hooks.h')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfs_hooks.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfs_hooks.h b/src/plugins/platforms/eglfs/qeglfs_hooks.h index a30af9409f..628ef1f33b 100644 --- a/src/plugins/platforms/eglfs/qeglfs_hooks.h +++ b/src/plugins/platforms/eglfs/qeglfs_hooks.h @@ -54,8 +54,16 @@ struct QEglFSHooks { QSize screenSize() const; EGLNativeWindowType createNativeWindow(const QSize &size); void destroyNativeWindow(EGLNativeWindowType window); + bool hasCapability(QPlatformIntegration::Capability cap) const; }; +#ifdef EGLFS_PLATFORM_HOOKS +extern QEglFSHooks platform_hooks; +static QEglFSHooks *hooks = &platform_hooks; +#else +static QEglFSHooks *hooks = 0; +#endif + QT_END_NAMESPACE #endif |