1/*
2 * Copyright (C) 2014 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 WebKitDOMXPathNSResolver_h
20#define WebKitDOMXPathNSResolver_h
21
22#include <glib-object.h>
23#include <webkitdom/webkitdomdefines.h>
24
25G_BEGIN_DECLS
26
27#define WEBKIT_DOM_TYPE_XPATH_NS_RESOLVER (webkit_dom_xpath_ns_resolver_get_type ())
28#define WEBKIT_DOM_XPATH_NS_RESOLVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEBKIT_DOM_TYPE_XPATH_NS_RESOLVER, WebKitDOMXPathNSResolver))
29#define WEBKIT_DOM_XPATH_NS_RESOLVER_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), WEBKIT_DOM_TYPE_XPATH_NS_RESOLVER, WebKitDOMXPathNSResolverIface))
30#define WEBKIT_DOM_IS_XPATH_NS_RESOLVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEBKIT_DOM_TYPE_XPATH_NS_RESOLVER))
31#define WEBKIT_DOM_XPATH_NS_RESOLVER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), WEBKIT_DOM_TYPE_XPATH_NS_RESOLVER, WebKitDOMXPathNSResolverIface))
32
33struct _WebKitDOMXPathNSResolverIface {
34 GTypeInterface gIface;
35
36 /* virtual table */
37 gchar *(* lookup_namespace_uri)(WebKitDOMXPathNSResolver *resolver,
38 const gchar *prefix);
39
40 void (*_webkitdom_reserved0) (void);
41 void (*_webkitdom_reserved1) (void);
42 void (*_webkitdom_reserved2) (void);
43 void (*_webkitdom_reserved3) (void);
44};
45
46
47WEBKIT_DEPRECATED GType webkit_dom_xpath_ns_resolver_get_type(void) G_GNUC_CONST;
48
49/**
50 * webkit_dom_xpath_ns_resolver_lookup_namespace_uri:
51 * @resolver: A #WebKitDOMXPathNSResolver
52 * @prefix: The prefix to lookup
53 *
54 * Returns: (transfer full): a #gchar
55 *
56 * Deprecated: 2.22: Use JavaScriptCore API instead
57 */
58WEBKIT_DEPRECATED gchar *webkit_dom_xpath_ns_resolver_lookup_namespace_uri(WebKitDOMXPathNSResolver *resolver,
59 const gchar *prefix);
60
61G_END_DECLS
62
63#endif /* WebKitDOMXPathNSResolver_h */
64