/* * Copyright (C) 2011 Benjamin Otte * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __GAME_FILE_RESOURCE_H__ #define __GAME_FILE_RESOURCE_H__ #include G_BEGIN_DECLS #define GAME_TYPE_FILE_RESOURCE (game_file_resource_get_type ()) #define GAME_FILE_RESOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GAME_TYPE_FILE_RESOURCE, GameFileResource)) #define GAME_FILE_RESOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GAME_TYPE_FILE_RESOURCE, GameFileResourceClass)) #define GAME_IS_FILE_RESOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GAME_TYPE_FILE_RESOURCE)) #define GAME_IS_FILE_RESOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GAME_TYPE_FILE_RESOURCE)) #define GAME_FILE_RESOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GAME_TYPE_FILE_RESOURCE, GameFileResourceClass)) typedef struct _GameFileResource GameFileResource; typedef struct _GameFileResourceClass GameFileResourceClass; struct _GameFileResource { GameDataResource data_resource; /*< private >*/ char * filename; }; struct _GameFileResourceClass { GameDataResourceClass data_resource_class; }; GType game_file_resource_get_type (void) G_GNUC_CONST; const char * game_file_resource_get_filename (GameFileResource * resource); void game_file_resource_set_filename (GameFileResource * resource, const char * filename); G_END_DECLS #endif /* __GAME_FILE_RESOURCE_H__ */