1 /* resourcelocator.c generated by valac, the Vala compiler
2 * generated from resourcelocator.vala, do not modify */
3
4 /* resourcelocator.vala
5 *
6 * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 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 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * Author:
23 * Didier 'Ptitjes Villevalois <ptitjes@free.fr>
24 */
25
26 #include "valadoc.h"
27 #include <stdlib.h>
28 #include <string.h>
29 #include <glib.h>
30
31 static GType valadoc_resource_locator_get_type_once (void);
32
33 gchar*
valadoc_resource_locator_resolve(ValadocResourceLocator * self,const gchar * path)34 valadoc_resource_locator_resolve (ValadocResourceLocator* self,
35 const gchar* path)
36 {
37 g_return_val_if_fail (self != NULL, NULL);
38 return VALADOC_RESOURCE_LOCATOR_GET_INTERFACE (self)->resolve (self, path);
39 }
40
41 static void
valadoc_resource_locator_default_init(ValadocResourceLocatorIface * iface,gpointer iface_data)42 valadoc_resource_locator_default_init (ValadocResourceLocatorIface * iface,
43 gpointer iface_data)
44 {
45 }
46
47 static GType
valadoc_resource_locator_get_type_once(void)48 valadoc_resource_locator_get_type_once (void)
49 {
50 static const GTypeInfo g_define_type_info = { sizeof (ValadocResourceLocatorIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_resource_locator_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
51 GType valadoc_resource_locator_type_id;
52 valadoc_resource_locator_type_id = g_type_register_static (G_TYPE_INTERFACE, "ValadocResourceLocator", &g_define_type_info, 0);
53 g_type_interface_add_prerequisite (valadoc_resource_locator_type_id, G_TYPE_OBJECT);
54 return valadoc_resource_locator_type_id;
55 }
56
57 GType
valadoc_resource_locator_get_type(void)58 valadoc_resource_locator_get_type (void)
59 {
60 static volatile gsize valadoc_resource_locator_type_id__volatile = 0;
61 if (g_once_init_enter (&valadoc_resource_locator_type_id__volatile)) {
62 GType valadoc_resource_locator_type_id;
63 valadoc_resource_locator_type_id = valadoc_resource_locator_get_type_once ();
64 g_once_init_leave (&valadoc_resource_locator_type_id__volatile, valadoc_resource_locator_type_id);
65 }
66 return valadoc_resource_locator_type_id__volatile;
67 }
68
69