| 1 | /* |
| 2 | * Copyright (C) 2010 Igalia, S.L. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 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 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public License |
| 15 | * along with this library; see the file COPYING.LIB. If not, write to |
| 16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | |
| 20 | #ifndef WTF_GTypedefs_h |
| 21 | #define WTF_GTypedefs_h |
| 22 | |
| 23 | /* Vanilla C code does not seem to be able to handle forward-declaration typedefs. */ |
| 24 | #ifdef __cplusplus |
| 25 | |
| 26 | typedef char gchar; |
| 27 | typedef double gdouble; |
| 28 | typedef float gfloat; |
| 29 | typedef int gint; |
| 30 | typedef gint gboolean; |
| 31 | typedef long glong; |
| 32 | typedef short gshort; |
| 33 | typedef unsigned char guchar; |
| 34 | typedef unsigned int guint; |
| 35 | typedef unsigned long gulong; |
| 36 | typedef unsigned short gushort; |
| 37 | typedef void* gpointer; |
| 38 | |
| 39 | typedef struct _GAsyncResult GAsyncResult; |
| 40 | typedef struct _GCancellable GCancellable; |
| 41 | typedef struct _GCharsetConverter GCharsetConverter; |
| 42 | typedef struct _GDir GDir; |
| 43 | typedef struct _GdkAtom* GdkAtom; |
| 44 | typedef struct _GdkCursor GdkCursor; |
| 45 | typedef struct _GdkDragContext GdkDragContext; |
| 46 | typedef struct _GdkEventConfigure GdkEventConfigure; |
| 47 | typedef struct _GdkEventExpose GdkEventExpose; |
| 48 | typedef struct _GdkPixbuf GdkPixbuf; |
| 49 | typedef struct _GError GError; |
| 50 | typedef struct _GFile GFile; |
| 51 | typedef struct _GHashTable GHashTable; |
| 52 | typedef struct _GInputStream GInputStream; |
| 53 | typedef struct _GList GList; |
| 54 | typedef struct _GMainContext GMainContext; |
| 55 | typedef struct _GMainLoop GMainLoop; |
| 56 | typedef struct _GPatternSpec GPatternSpec; |
| 57 | typedef struct _GPollableOutputStream GPollableOutputStream; |
| 58 | typedef struct _GSList GSList; |
| 59 | typedef struct _GSocketClient GSocketClient; |
| 60 | typedef struct _GSocketConnection GSocketConnection; |
| 61 | typedef struct _GSource GSource; |
| 62 | typedef struct _GVariant GVariant; |
| 63 | typedef struct _GVariantBuilder GVariantBuilder; |
| 64 | typedef struct _GVariantIter GVariantIter; |
| 65 | typedef union _GdkEvent GdkEvent; |
| 66 | typedef struct _GTimer GTimer; |
| 67 | typedef struct _GKeyFile GKeyFile; |
| 68 | typedef struct _GPtrArray GPtrArray; |
| 69 | typedef struct _GByteArray GByteArray; |
| 70 | typedef struct _GBytes GBytes; |
| 71 | typedef struct _GClosure GClosure; |
| 72 | |
| 73 | #if USE(CAIRO) |
| 74 | typedef struct _cairo_surface cairo_surface_t; |
| 75 | typedef struct _cairo_rectangle_int cairo_rectangle_int_t; |
| 76 | #endif |
| 77 | |
| 78 | #if USE(CLUTTER) |
| 79 | typedef struct _ClutterActor ClutterActor; |
| 80 | typedef struct _GraphicsLayerActor GraphicsLayerActor; |
| 81 | #endif |
| 82 | |
| 83 | #if PLATFORM(GTK) |
| 84 | typedef struct _GtkAction GtkAction; |
| 85 | typedef struct _GtkAdjustment GtkAdjustment; |
| 86 | typedef struct _GtkBorder GtkBorder; |
| 87 | typedef struct _GtkClipboard GtkClipboard; |
| 88 | typedef struct _GtkContainer GtkContainer; |
| 89 | typedef struct _GtkIconInfo GtkIconInfo; |
| 90 | typedef struct ; |
| 91 | typedef struct ; |
| 92 | typedef struct _GtkObject GtkObject; |
| 93 | typedef struct _GtkSelectionData GtkSelectionData; |
| 94 | typedef struct _GtkStyle GtkStyle; |
| 95 | typedef struct _GtkTargetList GtkTargetList; |
| 96 | typedef struct _GtkThemeParts GtkThemeParts; |
| 97 | typedef struct _GtkWidget GtkWidget; |
| 98 | typedef struct _GtkWindow GtkWindow; |
| 99 | |
| 100 | #ifdef GTK_API_VERSION_2 |
| 101 | typedef struct _GdkRectangle GdkRectangle; |
| 102 | typedef struct _GdkDrawable GdkWindow; |
| 103 | #else |
| 104 | typedef struct _GdkWindow GdkWindow; |
| 105 | typedef struct _GtkStyleContext GtkStyleContext; |
| 106 | #endif |
| 107 | |
| 108 | #endif |
| 109 | |
| 110 | #endif |
| 111 | #endif // WTF_GTypedefs_h |
| 112 | |