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 Lesser 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 *  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 webkitwebplugindatabase_h
20#define webkitwebplugindatabase_h
21
22#include <glib-object.h>
23
24#include <webkit/webkitdefines.h>
25
26G_BEGIN_DECLS
27
28#define WEBKIT_TYPE_WEB_PLUGIN_DATABASE            (webkit_web_plugin_database_get_type())
29#define WEBKIT_WEB_PLUGIN_DATABASE(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_WEB_PLUGIN_DATABASE, WebKitWebPluginDatabase))
30#define WEBKIT_WEB_PLUGIN_DATABASE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_WEB_PLUGIN_DATABASE, WebKitWebPluginDatabaseClass))
31#define WEBKIT_IS_WEB_PLUGIN_DATABASE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_WEB_PLUGIN_DATABASE))
32#define WEBKIT_IS_WEB_PLUGIN_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_WEB_PLUGIN_DATABASE))
33#define WEBKIT_WEB_PLUGIN_DATABASE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_WEB_PLUGIN_DATABASE, WebKitWebPluginDatabaseClass))
34
35typedef struct _WebKitWebPluginDatabasePrivate WebKitWebPluginDatabasePrivate;
36
37struct _WebKitWebPluginDatabaseClass {
38    GObjectClass parentClass;
39};
40
41struct _WebKitWebPluginDatabase {
42    GObject parentInstance;
43
44    WebKitWebPluginDatabasePrivate* priv;
45};
46
47WEBKIT_API GType
48webkit_web_plugin_database_get_type                (void) G_GNUC_CONST;
49
50WEBKIT_API void
51webkit_web_plugin_database_plugins_list_free       (GSList*);
52
53WEBKIT_API GSList*
54webkit_web_plugin_database_get_plugins             (WebKitWebPluginDatabase*);
55
56WEBKIT_API WebKitWebPlugin*
57webkit_web_plugin_database_get_plugin_for_mimetype (WebKitWebPluginDatabase*, const char *);
58
59WEBKIT_API void
60webkit_web_plugin_database_refresh                 (WebKitWebPluginDatabase*);
61
62G_END_DECLS
63
64#endif
65