1 /* 2 * Copyright (C) 2007 Holger Hans Peter Freyther 3 * Copyright (C) 2008 Collabora Ltd. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public License 16 * along with this library; see the file COPYING.LIB. If not, write to 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef webkitdefines_h 22 #define webkitdefines_h 23 24 #include <glib.h> 25 26 #ifdef G_OS_WIN32 27 #ifdef BUILDING_WEBKIT 28 #define WEBKIT_API __declspec(dllexport) 29 #else 30 #define WEBKIT_API __declspec(dllimport) 31 #endif 32 #define WEBKIT_OBSOLETE_API WEBKIT_API 33 #else 34 #define WEBKIT_API __attribute__((visibility("default"))) 35 #define WEBKIT_OBSOLETE_API WEBKIT_API __attribute__((deprecated)) 36 #endif 37 38 #ifndef WEBKIT_API 39 #define WEBKIT_API 40 #endif 41 42 G_BEGIN_DECLS 43 44 typedef struct _WebKitNetworkRequest WebKitNetworkRequest; 45 typedef struct _WebKitNetworkRequestClass WebKitNetworkRequestClass; 46 47 typedef struct _WebKitNetworkResponse WebKitNetworkResponse; 48 typedef struct _WebKitNetworkResponseClass WebKitNetworkResponseClass; 49 50 typedef struct _WebKitWebBackForwardList WebKitWebBackForwardList; 51 typedef struct _WebKitWebBackForwardListClass WebKitWebBackForwardListClass; 52 53 typedef struct _WebKitWebHistoryItem WebKitWebHistoryItem; 54 typedef struct _WebKitWebHistoryItemClass WebKitWebHistoryItemClass; 55 56 typedef struct _WebKitWebFrame WebKitWebFrame; 57 typedef struct _WebKitWebFrameClass WebKitWebFrameClass; 58 59 typedef struct _WebKitWebPolicyDecision WebKitWebPolicyDecision; 60 typedef struct _WebKitWebPolicyDecisionClass WebKitWebPolicyDecisionClass; 61 62 typedef struct _WebKitWebSettings WebKitWebSettings; 63 typedef struct _WebKitWebSettingsClass WebKitWebSettingsClass; 64 65 typedef struct _WebKitWebInspector WebKitWebInspector; 66 typedef struct _WebKitWebInspectorClass WebKitWebInspectorClass; 67 68 typedef struct _WebKitWebWindowFeatures WebKitWebWindowFeatures; 69 typedef struct _WebKitWebWindowFeaturesClass WebKitWebWindowFeaturesClass; 70 71 typedef struct _WebKitWebView WebKitWebView; 72 typedef struct _WebKitWebViewClass WebKitWebViewClass; 73 74 typedef struct _WebKitDownload WebKitDownload; 75 typedef struct _WebKitDownloadClass WebKitDownloadClass; 76 77 typedef struct _WebKitWebResource WebKitWebResource; 78 typedef struct _WebKitWebResourceClass WebKitWebResourceClass; 79 80 typedef struct _WebKitWebDataSource WebKitWebDataSource; 81 typedef struct _WebKitWebDataSourceClass WebKitWebDataSourceClass; 82 83 typedef struct _WebKitWebDatabase WebKitWebDatabase; 84 typedef struct _WebKitWebDatabaseClass WebKitWebDatabaseClass; 85 86 typedef struct _WebKitSecurityOrigin WebKitSecurityOrigin; 87 typedef struct _WebKitSecurityOriginClass WebKitSecurityOriginClass; 88 89 typedef struct _WebKitHitTestResult WebKitHitTestResult; 90 typedef struct _WebKitHitTestResultClass WebKitHitTestResultClass; 91 92 G_END_DECLS 93 94 #endif 95