Remove forward declaration for struct provided internally by opensource
authorYunchan Cho <yunchan.cho@samsung.com>
Fri, 29 Mar 2013 13:31:38 +0000 (22:31 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Fri, 29 Mar 2013 14:25:17 +0000 (23:25 +0900)
[Issue#] N/A
[Problem] N/A
[Problem] Internal struct provided by opensource can be changed without public notice.
          If we do forward declaration for such internal struct, this may cause build break of web-provider
[Solution] Remove such forward declaration.

Change-Id: Id3dc64bd114ec360d4f89f3f45aabf2393c2dc03

src/Core/Buffer/IRenderBuffer.h
src/Core/Buffer/RenderBuffer.h
src/Core/IBox.h
src/Core/Service/PeriodChanger.h
src/Core/View/IPdHelper.h
src/Core/View/IRenderView.h
src/Core/View/PdHelper.h
src/Core/View/WebView.h
src/Plugin/IBoxPluginFactory.h

index 6b70271..5c03df2 100644 (file)
 #define I_RENDER_BUFFER_H
 
 #include <memory>
+#include <Evas.h>
 #include <Util/Noncopyable.h>
 
-struct _Evas_Object;
-typedef _Evas_Object Evas_Object;
-
 class IRenderBuffer: Noncopyable {
     public:
         virtual bool allocate() = 0;  
index 61e8bd4..8c8d8d7 100644 (file)
 #define RENDER_BUFFER_H
 
 #include <memory>
+#include <Evas.h>
 #include "IRenderBuffer.h"
 
 // forward declaration
-struct _Evas_Object;
-struct _Evas;
 struct livebox_buffer;
-typedef _Evas_Object Evas_Object;
-typedef _Evas Evas;
 
 // type definition
 typedef struct livebox_buffer* BufferInfoPtr;
index 2746181..826cad0 100644 (file)
@@ -20,8 +20,7 @@
 #ifndef I_BOX_H
 #define I_BOX_H
 
-struct _Ewk_Context;
-typedef _Ewk_Context Ewk_Context;
+#include <ewk_context.h>
 
 class IBox {
     public:
index 21cdd71..0d49f07 100644 (file)
@@ -22,9 +22,7 @@
 
 #include <string>
 #include <memory>
-
-struct _Evas_Object;
-typedef _Evas_Object Evas_Object;
+#include <Evas.h>
 
 namespace Service {
 class PeriodChanger;
index 047d397..5e90bdf 100644 (file)
@@ -20,9 +20,7 @@
 #ifndef I_PD_HELPER_H
 #define I_PD_HELPER_H
 
-// forward declaration
-struct _Evas_Object;
-typedef _Evas_Object Evas_Object;
+#include <Evas.h>
 
 class IPdHelper {
     public:
index 49f614b..0ad7c34 100644 (file)
@@ -22,9 +22,7 @@
 
 #include <string>
 #include <memory>
-
-struct _Evas_Object;
-typedef _Evas_Object Evas_Object;
+#include <Evas.h>
 
 struct RenderInfo {
     int width;
index 938d7c9..0ee987d 100644 (file)
  */
 
 #include <string>
+#include <Evas.h>
 #include "IRenderView.h"
 #include "IPdHelper.h"
 
-struct _Evas_Object;
-typedef _Evas_Object Evas_Object;
 #define EXPORT_CLASS    __attribute__ ((visibility("default"))
 
 class EXPORT_CLASS PdHelper: public IPdHelper {
index ca7c220..4beb8e2 100644 (file)
 #include <map>
 #include <Eina.h>
 #include <Evas.h>
+#include <ewk_context.h>
 #include "IWebView.h"
 
-struct _Ewk_Context;
-typedef _Ewk_Context Ewk_Context;
-
 #define EXPORT_CLASS __attribute__ ((visibility("default"))
 
 class EXPORT_CLASS WebView: public IWebView {
index 5751702..458bafb 100644 (file)
 
 #include <string>
 #include <memory>
+#include <Evas.h>
+#include <ewk_context.h>
 
 // forward declaration
 class IRenderView;
 class IRenderBuffer;
-struct _Ewk_Context;
-struct _Evas_Object;
-typedef _Ewk_Context Ewk_Context;
-typedef _Evas_Object Evas_Object;
 
 class IBoxPluginFactory {
     public: