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/>.
17 #ifndef GPLATE_OBJECT_VARIABLE_H
18 #define GPLATE_OBJECT_VARIABLE_H
20 #include <gplate/gplate-variable.h>
22 #define GPLATE_TYPE_OBJECT_VARIABLE (gplate_object_variable_get_gtype())
23 #define GPLATE_OBJECT_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLATE_TYPE_OBJECT_VARIABLE, GPlateObjectVariable))
24 #define GPLATE_OBJECT_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GPLATE_TYPE_OBJECT_VARIABLE, GPlateObjectVariableClass))
25 #define GPLATE_IS_OBJECT_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLATE_TYPE_OBJECT_VARIABLE))
26 #define GPLATE_IS_OBJECT_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GPLATE_TYPE_OBJECT_VARIABLE))
27 #define GPLATE_OBJECT_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLATE_TYPE_OBJECT_VARIABLE, GPlateObjectVariableClass))
29 typedef struct _GPlateObjectVariable GPlateObjectVariable;
30 typedef struct _GPlateObjectVariableClass GPlateObjectVariableClass;
32 struct _GPlateObjectVariable {
33 GPlateVariable gparent;
35 void (*_gplate_reserved1)(void);
36 void (*_gplate_reserved2)(void);
37 void (*_gplate_reserved3)(void);
38 void (*_gplate_reserved4)(void);
41 struct _GPlateObjectVariableClass {
42 GPlateVariableClass parent;
44 void (*_gplate_reserved1)(void);
45 void (*_gplate_reserved2)(void);
46 void (*_gplate_reserved3)(void);
47 void (*_gplate_reserved4)(void);
52 GType gplate_object_variable_get_gtype(void);
54 GPlateVariable *gplate_object_variable_new_from_object(const gchar *name, GObject *value);
56 GObject *gplate_object_variable_get_object(const GPlateObjectVariable *variable);
60 #endif /* GPLATE_OBJECT_VARIABLE_H */