]>
Commit | Line | Data |
---|---|---|
1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ | |
2 | /* | |
3 | * viking | |
4 | * Copyright (C) 2009, Guilhem Bonnefille <guilhem.bonnefille@gmail.com> | |
5 | * | |
6 | * viking is free software: you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation, either version 2 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * viking is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14 | * See the GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License along | |
17 | * with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | ||
20 | #ifndef _VIK_GOBJECT_BUILDER_H_ | |
21 | #define _VIK_GOBJECT_BUILDER_H_ | |
22 | ||
23 | #include <glib-object.h> | |
24 | ||
25 | G_BEGIN_DECLS | |
26 | ||
27 | #define VIK_TYPE_GOBJECT_BUILDER (vik_gobject_builder_get_type ()) | |
28 | #define VIK_GOBJECT_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TYPE_GOBJECT_BUILDER, VikGobjectBuilder)) | |
29 | #define VIK_GOBJECT_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TYPE_GOBJECT_BUILDER, VikGobjectBuilderClass)) | |
30 | #define VIK_IS_GOBJECT_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TYPE_GOBJECT_BUILDER)) | |
31 | #define VIK_IS_GOBJECT_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TYPE_GOBJECT_BUILDER)) | |
32 | #define VIK_GOBJECT_BUILDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIK_TYPE_GOBJECT_BUILDER, VikGobjectBuilderClass)) | |
33 | ||
34 | typedef struct _VikGobjectBuilderClass VikGobjectBuilderClass; | |
35 | typedef struct _VikGobjectBuilder VikGobjectBuilder; | |
36 | ||
37 | struct _VikGobjectBuilderClass | |
38 | { | |
39 | GObjectClass parent_class; | |
40 | ||
41 | /* Signals */ | |
42 | void(* new_object) (VikGobjectBuilder *self, GObject *object); | |
43 | }; | |
44 | ||
45 | struct _VikGobjectBuilder | |
46 | { | |
47 | GObject parent_instance; | |
48 | }; | |
49 | ||
50 | GType vik_gobject_builder_get_type (void) G_GNUC_CONST; | |
51 | VikGobjectBuilder *vik_gobject_builder_new (void); | |
52 | ||
53 | void vik_gobject_builder_parse (VikGobjectBuilder *self, const gchar *filename); | |
54 | ||
55 | G_END_DECLS | |
56 | ||
57 | #endif /* _VIK_GOBJECT_BUILDER_H_ */ |