1 | /* |
2 | * Copyright (C) 2008 Luke Kenneth Casson Leighton <[email protected]> |
3 | * Copyright (C) 2008 Martin Soto <[email protected]> |
4 | * Copyright (C) 2008 Alp Toker <[email protected]> |
5 | * Copyright (C) 2008 Apple Inc. |
6 | * Copyright (C) 2009 Igalia S.L. |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Library General Public |
10 | * License as published by the Free Software Foundation; either |
11 | * version 2 of the License, or (at your option) any later version. |
12 | * |
13 | * This library is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Library General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Library General Public License |
19 | * along with this library; see the file COPYING.LIB. If not, write to |
20 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | * Boston, MA 02110-1301, USA. |
22 | */ |
23 | |
24 | #ifndef WebKitDOMObject_h |
25 | #define WebKitDOMObject_h |
26 | |
27 | #include <glib-object.h> |
28 | #include <webkitdom/webkitdomdefines.h> |
29 | |
30 | G_BEGIN_DECLS |
31 | |
32 | #define WEBKIT_DOM_TYPE_OBJECT (webkit_dom_object_get_type()) |
33 | #define WEBKIT_DOM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_OBJECT, WebKitDOMObject)) |
34 | #define WEBKIT_DOM_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_OBJECT, WebKitDOMObjectClass)) |
35 | #define WEBKIT_DOM_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_OBJECT)) |
36 | #define WEBKIT_DOM_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_OBJECT)) |
37 | #define WEBKIT_DOM_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_OBJECT, WebKitDOMObjectClass)) |
38 | |
39 | struct _WebKitDOMObject { |
40 | GObject parentInstance; |
41 | |
42 | gpointer coreObject; |
43 | }; |
44 | |
45 | struct _WebKitDOMObjectClass { |
46 | GObjectClass parentClass; |
47 | }; |
48 | |
49 | WEBKIT_API GType |
50 | webkit_dom_object_get_type(void); |
51 | |
52 | G_END_DECLS |
53 | |
54 | #endif /* WebKitDOMObject_h */ |
55 | |