Make eglfs hooks functionality namespace cognisant
authorDonald Carr <donald.carr@nokia.com>
Wed, 2 May 2012 00:44:45 +0000 (00:44 +0000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 2 May 2012 02:29:15 +0000 (04:29 +0200)
Change-Id: Ie9f86bd0494c0423f50d0f405922ab169b2431e3
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfshooks_8726m.cpp
mkspecs/devices/linux-mipsel-broadcom-97425-g++/qdirectfbeglhooks_bcm97425.cpp
mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp
src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
src/plugins/platforms/eglfs/qeglfshooks_x11.cpp

index 6655c50..9fa05a4 100644 (file)
@@ -48,6 +48,8 @@
 #include <fcntl.h>
 #include <linux/fb.h>
 
+QT_BEGIN_NAMESPACE
+
 class QEglFS8726MHooks : public QEglFSHooks
 {
 public:
@@ -90,3 +92,4 @@ void QEglFS8726MHooks::destroyNativeWindow(EGLNativeWindowType window)
 QEglFS8726MHooks eglFS8726MHooks;
 QEglFSHooks *platformHooks = &eglFS8726MHooks;
 
+QT_END_NAMESPACE
index 16aee0c..07967f7 100644 (file)
@@ -44,6 +44,8 @@
 
 #include "default_directfb.h"
 
+QT_BEGIN_NAMESPACE
+
 // Exported to the directfb plugin
 QDirectFBEGLHooks platform_hook;
 static void *dbpl_handle;
@@ -69,3 +71,4 @@ bool QDirectFBEGLHooks::hasCapability(QPlatformIntegration::Capability cap) cons
     }
 }
 
+QT_END_NAMESPACE
index 21052a5..cdd01dc 100644 (file)
@@ -52,6 +52,8 @@
 #include <linux/fb.h>
 #endif
 
+QT_BEGIN_NAMESPACE
+
 static DISPMANX_DISPLAY_HANDLE_T dispman_display = 0;
 static DISPMANX_UPDATE_HANDLE_T dispman_update = 0;
 
@@ -167,3 +169,5 @@ bool QEglFSPiHooks::hasCapability(QPlatformIntegration::Capability cap) const
 
 QEglFSPiHooks eglFSPiHooks;
 QEglFSHooks *platformHooks = &eglFSPiHooks;
+
+QT_END_NAMESPACE
index 7cc3527..c0e202f 100644 (file)
@@ -41,6 +41,8 @@
 
 #include "qeglfshooks.h"
 
+QT_BEGIN_NAMESPACE
+
 void QEglFSHooks::platformInit()
 {
 }
@@ -79,3 +81,5 @@ bool QEglFSHooks::hasCapability(QPlatformIntegration::Capability cap) const
 #ifndef EGLFS_PLATFORM_HOOKS
 QEglFSHooks stubHooks;
 #endif
+
+QT_END_NAMESPACE
index cb788c5..af750a7 100644 (file)
@@ -43,6 +43,8 @@
 
 #include <X11/Xlib.h>
 
+QT_BEGIN_NAMESPACE
+
 class QEglFSX11Hooks : public QEglFSHooks
 {
 public:
@@ -108,3 +110,4 @@ bool QEglFSX11Hooks::hasCapability(QPlatformIntegration::Capability cap) const
 static QEglFSX11Hooks eglFSX11Hooks;
 QEglFSHooks *platformHooks = &eglFSX11Hooks;
 
+QT_END_NAMESPACE