gplate/gplate-tag.h
author Gary Kramlich <grim@reaperworld.com>
Sat Jul 03 23:24:33 2010 -0500 (22 months ago)
changeset 394 ad26d98e20e6
parent 201 5b36743914fd
permissions -rw-r--r--
Changed the license from gplv2 to gplv3
Updated copyrights to be 2007-2010 rather than 2007-2008 (since just about everything has been touched recently
Ignored the top level tests/ directory for now since that is slowly being replaced
grim@63
     1
/*
grim@394
     2
 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
grim@63
     3
 *
grim@394
     4
 * This program is free software: you can redistribute it and/or modify
grim@394
     5
 * it under the terms of the GNU General Public License as published by
grim@394
     6
 * the Free Software Foundation, either version 3 of the License, or
grim@394
     7
 * (at your option) any later version.
grim@63
     8
 *
grim@394
     9
 * This program is distributed in the hope that it will be useful,
grim@394
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
grim@394
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
grim@394
    12
 * GNU General Public License for more details.
grim@394
    13
 *
grim@394
    14
 * You should have received a copy of the GNU General Public License
grim@394
    15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
grim@63
    16
 */
grim@63
    17
#ifndef GPLATE_TAG_H
grim@63
    18
#define GPLATE_TAG_H
grim@63
    19
grim@63
    20
#include <glib.h>
grim@63
    21
#include <glib-object.h>
grim@63
    22
grim@201
    23
#define GPLATE_TYPE_TAG				(gplate_tag_get_gtype())
grim@201
    24
#define GPLATE_TAG(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj), GPLATE_TYPE_TAG, GPlateTag))
grim@201
    25
#define GPLATE_TAG_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass), GPLATE_TYPE_TAG, GPlateTagClass))
grim@63
    26
#define GPLATE_IS_TAG(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLATE_TYPE_TAG))
grim@63
    27
#define GPLATE_IS_TAG_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass), GPLATE_TYPE_TAG))
grim@63
    28
#define GPLATE_TAG_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS((obj), GPLATE_TYPE_TAG, GPlateTagClass))
grim@63
    29
grim@63
    30
typedef struct _GPlateTag			GPlateTag;
grim@63
    31
typedef struct _GPlateTagClass		GPlateTagClass;
grim@63
    32
grim@197
    33
#include <gplate/gplate-template.h>
grim@197
    34
grim@63
    35
struct _GPlateTag {
grim@63
    36
	GObject gparent;
grim@63
    37
grim@63
    38
	void (*_gplate_reserved1)(void);
grim@63
    39
	void (*_gplate_reserved2)(void);
grim@63
    40
	void (*_gplate_reserved3)(void);
grim@63
    41
	void (*_gplate_reserved4)(void);
grim@63
    42
};
grim@63
    43
grim@63
    44
struct _GPlateTagClass {
grim@63
    45
	GObjectClass parent;
grim@63
    46
grim@201
    47
	gchar *(*get_contents)(const GPlateTag *tag);
grim@83
    48
grim@76
    49
	const gchar *(*get_prefix)(const GPlateTagClass *tag_class);
grim@76
    50
	const gchar *(*get_suffix)(const GPlateTagClass *tag_class);
grim@63
    51
grim@63
    52
	void (*_gplate_reserved1)(void);
grim@63
    53
	void (*_gplate_reserved2)(void);
grim@63
    54
	void (*_gplate_reserved3)(void);
grim@63
    55
	void (*_gplate_reserved4)(void);
grim@63
    56
};
grim@63
    57
grim@63
    58
G_BEGIN_DECLS
grim@63
    59
grim@63
    60
GType gplate_tag_get_gtype(void);
grim@63
    61
grim@201
    62
GPlateTemplate *gplate_tag_get_template(const GPlateTag *tag);
grim@201
    63
gchar *gplate_tag_get_contents(const GPlateTag *tag);
grim@83
    64
grim@76
    65
const gchar *gplate_tag_class_get_prefix(const GPlateTagClass *tag_class);
grim@76
    66
const gchar *gplate_tag_class_get_suffix(const GPlateTagClass *tag_class);
grim@63
    67
grim@63
    68
G_END_DECLS
grim@63
    69
grim@63
    70
#endif /* GPLATE_TAG_H */