00001 /* GLIB - Library of useful routines for C programming 00002 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 00003 * 00004 * gdir.c: Simplified wrapper around the DIRENT functions. 00005 * 00006 * Copyright 2001 Hans Breuer 00007 * Portions copyright (c) 2006 Nokia Corporation. All rights reserved. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the 00021 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00022 * Boston, MA 02111-1307, USA. 00023 */ 00024 #ifndef __G_DIR_H__ 00025 #define __G_DIR_H__ 00026 00027 #include <_ansi.h> 00028 #include <glib/gerror.h> 00029 00030 G_BEGIN_DECLS 00031 00032 typedef struct _GDir GDir; 00033 00034 #ifdef G_OS_WIN32 00035 /* For DLL ABI stability, keep old names for old (non-UTF-8) functionality. */ 00036 #define g_dir_open g_dir_open_utf8 00037 #define g_dir_read_name g_dir_read_name_utf8 00038 #endif 00039 00040 IMPORT_C GDir * g_dir_open (const gchar *path, 00041 guint flags, 00042 GError **error); 00043 IMPORT_C G_CONST_RETURN gchar *g_dir_read_name (GDir *dir); 00044 IMPORT_C void g_dir_rewind (GDir *dir); 00045 IMPORT_C void g_dir_close (GDir *dir); 00046 00047 G_END_DECLS 00048 00049 #endif /* __G_DIR_H__ */