OpenClonk
group.h
Go to the documentation of this file.
1 /*
2  * mape - C4 Landscape.txt editor
3  *
4  * Copyright (c) 2005-2009, Armin Burgmeier
5  *
6  * Distributed under the terms of the ISC license; see accompanying file
7  * "COPYING" for details.
8  *
9  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
10  * See accompanying file "TRADEMARK" for details.
11  *
12  * To redistribute this file separately, substitute the full license texts
13  * for the above references.
14  */
15 
16 #ifndef INC_MAPE_GROUP_H
17 #define INC_MAPE_GROUP_H
18 
19 #include <glib-object.h>
20 
21 G_BEGIN_DECLS
22 
23 #define MAPE_TYPE_GROUP (mape_group_get_type())
24 #define MAPE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MAPE_TYPE_GROUP, MapeGroup))
25 #define MAPE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), MAPE_TYPE_GROUP, MapeGroupClass))
26 #define MAPE_IS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MAPE_TYPE_GROUP))
27 #define MAPE_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MAPE_TYPE_GROUP))
28 #define MAPE_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MAPE_TYPE_GROUP, MapeGroupClass))
29 
30 typedef struct _MapeGroup MapeGroup;
31 typedef struct _MapeGroupClass MapeGroupClass;
32 
42 typedef enum _MapeGroupError {
47 
54  /*< private >*/
55  GObjectClass parent_class;
56 };
57 
64 struct _MapeGroup {
65  /*< private >*/
66  GObject parent;
67 };
68 
69 GType
70 mape_group_get_type(void) G_GNUC_CONST;
71 
72 MapeGroup*
73 mape_group_new(void);
74 
75 gboolean
77 
78 gboolean
80  const gchar* path,
81  GError** error);
82 
83 MapeGroup*
85  const gchar* entry,
86  GError** error);
87 
88 void
90 
91 const gchar*
93 
94 gchar*
96 
97 gboolean
99  const gchar* entry);
100 
101 void
103 
104 gchar*
106 
107 guchar*
109  const gchar* entry,
110  gsize* size,
111  GError** error);
112 
113 gboolean
115 
116 gboolean
118 
119 gboolean
121  const gchar* child);
122 
123 G_END_DECLS
124 
125 #endif /* INC_MAPE_GROUP_H */
126 
127 /* vim:set et sw=2 ts=2: */
gboolean mape_group_is_folder(MapeGroup *group)
_MapeGroupError
Definition: group.h:42
@ MAPE_GROUP_ERROR_OPEN
Definition: group.h:43
@ MAPE_GROUP_ERROR_ACCESS
Definition: group.h:44
@ MAPE_GROUP_ERROR_READ
Definition: group.h:45
guchar * mape_group_load_entry(MapeGroup *group, const gchar *entry, gsize *size, GError **error)
Definition: group.c:557
enum _MapeGroupError MapeGroupError
MapeGroup * mape_group_open_child(MapeGroup *group, const gchar *entry, GError **error)
Definition: group.c:301
gchar * mape_group_get_next_entry(MapeGroup *group)
Definition: group.c:496
void mape_group_close(MapeGroup *group)
Definition: group.c:355
MapeGroup * mape_group_new(void)
Definition: group.c:206
GType mape_group_get_type(void) G_GNUC_CONST
gboolean mape_group_is_drive_container(MapeGroup *group)
Definition: group.c:603
GObject parent
Definition: group.h:66
void mape_group_rewind(MapeGroup *group)
Definition: group.c:462
gboolean mape_group_is_child_folder(MapeGroup *group, const gchar *child)
Definition: group.c:631
gboolean mape_group_open(MapeGroup *group, const gchar *path, GError **error)
Definition: group.c:249
const gchar * mape_group_get_name(MapeGroup *group)
Definition: group.c:390
gchar * mape_group_get_full_name(MapeGroup *group)
Definition: group.c:407
GObjectClass parent_class
Definition: group.h:55
gboolean mape_group_has_entry(MapeGroup *group, const gchar *entry)
Definition: group.c:424
gboolean mape_group_is_open(MapeGroup *group)
Definition: group.c:220