gplate/variables/gplate-directory-variable.h
author Gary Kramlich <grim@reaperworld.com>
Sat Jul 03 23:24:33 2010 -0500 (22 months ago)
changeset 394 ad26d98e20e6
parent 294 f92ef8f4321d
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@278
     1
/*
grim@394
     2
 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
grim@278
     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@278
     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@278
    16
 */
grim@278
    17
#ifndef GPLATE_DIRECTORY_VARIABLE_H
grim@278
    18
#define GPLATE_DIRECTORY_VARIABLE_H
grim@278
    19
grim@278
    20
#include <gplate/variables/gplate-dictionary-variable.h>
grim@278
    21
grim@278
    22
#define GPLATE_TYPE_DIRECTORY_VARIABLE				(gplate_directory_variable_get_gtype())
grim@278
    23
#define GPLATE_DIRECTORY_VARIABLE(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj), GPLATE_TYPE_DIRECTORY_VARIABLE, GPlateDirectoryVariable))
grim@278
    24
#define GPLATE_DIRECTORY_VARIABLE_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass), GPLATE_TYPE_DIRECTORY_VARIABLE, GPlateDirectoryVariableClass))
grim@278
    25
#define GPLATE_IS_DIRECTORY_VARIABLE(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLATE_TYPE_DIRECTORY_VARIABLE))
grim@278
    26
#define GPLATE_IS_DIRECTORY_VARIABLE_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass), GPLATE_TYPE_DIRECTORY_VARIABLE))
grim@278
    27
#define GPLATE_DIRECTORY_VARIABLE_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS((obj), GPLATE_TYPE_DIRECTORY_VARIABLE, GPlateDirectoryVariableClass))
grim@278
    28
grim@278
    29
typedef struct _GPlateDirectoryVariable				GPlateDirectoryVariable;
grim@278
    30
typedef struct _GPlateDirectoryVariableClass		GPlateDirectoryVariableClass;
grim@278
    31
grim@278
    32
struct _GPlateDirectoryVariable {
grim@278
    33
	GPlateDictionaryVariable gparent;
grim@278
    34
grim@278
    35
	void (*_gplate_reserved1)(void);
grim@278
    36
	void (*_gplate_reserved2)(void);
grim@278
    37
	void (*_gplate_reserved3)(void);
grim@278
    38
	void (*_gplate_reserved4)(void);
grim@278
    39
};
grim@278
    40
grim@278
    41
struct _GPlateDirectoryVariableClass {
grim@278
    42
	GPlateDictionaryVariableClass parent;
grim@278
    43
grim@278
    44
	void (*refresh)(GPlateDirectoryVariable *directory_variable);
grim@278
    45
grim@278
    46
	void (*_gplate_reserved1)(void);
grim@278
    47
	void (*_gplate_reserved2)(void);
grim@278
    48
	void (*_gplate_reserved3)(void);
grim@278
    49
	void (*_gplate_reserved4)(void);
grim@278
    50
};
grim@278
    51
grim@278
    52
G_BEGIN_DECLS
grim@278
    53
grim@278
    54
GType gplate_directory_variable_get_gtype(void);
grim@278
    55
grim@278
    56
GPlateVariable *gplate_directory_variable_new(const gchar *name, const gchar *path);
grim@278
    57
grim@278
    58
void gplate_directory_variable_refresh(GPlateDirectoryVariable *directory_variable);
grim@278
    59
grim@278
    60
G_END_DECLS
grim@278
    61
grim@278
    62
#endif /* GPLATE_DIRECTORY_VARIABLE_H */