2 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program 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
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include <glib-object.h>
23 #define GPLATE_TYPE_TAG (gplate_tag_get_gtype())
24 #define GPLATE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLATE_TYPE_TAG, GPlateTag))
25 #define GPLATE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GPLATE_TYPE_TAG, GPlateTagClass))
26 #define GPLATE_IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLATE_TYPE_TAG))
27 #define GPLATE_IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GPLATE_TYPE_TAG))
28 #define GPLATE_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLATE_TYPE_TAG, GPlateTagClass))
30 typedef struct _GPlateTag GPlateTag;
31 typedef struct _GPlateTagClass GPlateTagClass;
33 #include <gplate/gplate-template.h>
38 void (*_gplate_reserved1)(void);
39 void (*_gplate_reserved2)(void);
40 void (*_gplate_reserved3)(void);
41 void (*_gplate_reserved4)(void);
44 struct _GPlateTagClass {
47 gchar *(*get_contents)(const GPlateTag *tag);
49 const gchar *(*get_prefix)(const GPlateTagClass *tag_class);
50 const gchar *(*get_suffix)(const GPlateTagClass *tag_class);
52 void (*_gplate_reserved1)(void);
53 void (*_gplate_reserved2)(void);
54 void (*_gplate_reserved3)(void);
55 void (*_gplate_reserved4)(void);
60 GType gplate_tag_get_gtype(void);
62 GPlateTemplate *gplate_tag_get_template(const GPlateTag *tag);
63 gchar *gplate_tag_get_contents(const GPlateTag *tag);
65 const gchar *gplate_tag_class_get_prefix(const GPlateTagClass *tag_class);
66 const gchar *gplate_tag_class_get_suffix(const GPlateTagClass *tag_class);
70 #endif /* GPLATE_TAG_H */