diff options
author | Hans Breuer <hans@breuer.org> | 2001-11-05 01:15:38 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2001-11-05 01:15:38 +0000 |
commit | 3a86505c77f967e891a68082b0bc28bd045f1192 (patch) | |
tree | ca865059c8659c2e4686877c595929c497af9b88 /glib/gdir.h | |
parent | 49d9628efc0144ff63da5d09d4aa2c51e309067a (diff) | |
download | glib-3a86505c77f967e891a68082b0bc28bd045f1192.tar.gz |
simplified wrapper around dirent functions to improve portability of
2001-11-04 Hans Breuer <hans@breuer.org>
* glib/gdir.[hc] : (new files) simplified wrapper around dirent
functions to improve portability of downstream libs/apps
* glib/makefile.msc.in : use them
* glib/glib.def : export them
* config.h.win32.in : needing HAVE_DIRENT_H defined
Diffstat (limited to 'glib/gdir.h')
-rw-r--r-- | glib/gdir.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/glib/gdir.h b/glib/gdir.h new file mode 100644 index 000000000..820619113 --- /dev/null +++ b/glib/gdir.h @@ -0,0 +1,18 @@ +#ifndef __G_DIR_H__ +#define __G_DIR_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +typedef struct _GDir GDir; + +GDir *g_dir_open (const gchar *path, guint flags, GError **error); +G_CONST_RETURN +gchar *g_dir_read_name (GDir *dir); +void g_dir_rewind (GDir *dir); +gboolean g_dir_close (GDir *dir); + +G_END_DECLS + +#endif /* __G_DIR_H__ */ |