tizen beta release
[profile/ivi/webkit-efl.git] / debian / tmp / usr / include / ewebkit-0 / WebKitDOM_Object.h
1 /*
2     Copyright (C) 2011 Samsung Electronics
3
4     This library is free software; you can redistribute it and/or
5     modify it under the terms of the GNU Lesser General Public
6     License as published by the Free Software Foundation; either
7     version 2.1 of the License, or (at your option) any later version.
8
9     This library is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12     Lesser General Public License for more details.
13
14     You should have received a copy of the GNU Lesser General Public
15     License along with this library; if not, write to the Free Software
16     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18
19 #ifndef WebKitDOM_Object_h
20 #define WebKitDOM_Object_h
21
22 #include <Eina.h>
23 #include <Evas.h>
24
25 #define WEBKITDOM_CAST(type,pointer) ((type*)(pointer))
26 #define WEBKITDOM_COREOBJ(pointer) (((WebKitDOM_Object*)pointer)->p_coreObject)
27 #define WEBKITDOM_ISNULL(pointer) ((((WebKitDOM_Object*)pointer)->p_coreObject) == 0)
28 #define WEBKITDOM_EQUAL(pointer1, pointer2) (((WebKitDOM_Object*)(pointer1))->p_coreObject == ((WebKitDOM_Object*)(pointer2))->p_coreObject)
29
30 #define WEBKITDOM_DEINIT(objPtr) (((WebKitDOM_Object*)objPtr)->deinit)((const WebKitDOM_Object*)objPtr)
31
32 typedef void* WebCoreObjectPointer;
33
34 typedef struct _WebKitDOM_Object WebKitDOM_Object;
35 struct _WebKitDOM_Object {
36     WebCoreObjectPointer p_coreObject;
37
38     void (*deinit)(const WebKitDOM_Object*);
39 };
40
41 #endif