summaryrefslogtreecommitdiff
path: root/libgame/game-file-resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgame/game-file-resource.h')
-rw-r--r--libgame/game-file-resource.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/libgame/game-file-resource.h b/libgame/game-file-resource.h
new file mode 100644
index 0000000..116c295
--- /dev/null
+++ b/libgame/game-file-resource.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
+ *
+ * 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 <libgame/game-data-resource.h>
+
+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__ */