gdir.h File Reference

__G_DIR_H__

Typedef GDir

typedef typedefG_BEGIN_DECLS struct _GDirGDir

g_dir_open ( const gchar *, guint, GError ** )

IMPORT_C GDir *g_dir_open(const gchar *path,
guintflags,
GError **error
)

g_dir_open: : the path to the directory you are interested in. On Unix in the on-disk encoding. On Windows in UTF-8 : Currently must be set to 0. Reserved for future use. : return location for a GError, or NULL. If non-NULL, an error will be set if and only if g_dir_open() fails.

Opens a directory for reading. The names of the files in the directory can then be retrieved using g_dir_read_name().

Return value: a newly allocated GDir on success, NULL on failure. If non-NULL, you must free the result with g_dir_close() when you are finished with it.

g_dir_read_name ( GDir * )

IMPORT_C G_CONST_RETURN gchar *g_dir_read_name(GDir *dir)

g_dir_rewind ( GDir * )

IMPORT_C voidg_dir_rewind(GDir *dir)

g_dir_close ( GDir * )

IMPORT_C voidg_dir_close(GDir *dir)