Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdir.h
Go to the documentation of this file.
1/* GLIB - Library of useful routines for C programming
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
4 * gdir.c: Simplified wrapper around the DIRENT functions.
5 *
6 * Copyright 2001 Hans Breuer
7 *
8 * SPDX-License-Identifier: LGPL-2.1-or-later
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef __G_DIR_H__
25#define __G_DIR_H__
26
27#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
28#error "Only <glib.h> can be included directly."
29#endif
30
31#include <glib/gerror.h>
32
33#ifdef G_OS_UNIX
34#include <dirent.h>
35#endif
36
38
39typedef struct _GDir GDir;
40
42GDir * g_dir_open (const gchar *path,
43 guint flags,
44 GError **error);
46const gchar * g_dir_read_name (GDir *dir);
48void g_dir_rewind (GDir *dir);
50void g_dir_close (GDir *dir);
51
55void g_dir_unref (GDir *dir);
56
58
59#endif /* __G_DIR_H__ */
GLIB_AVAILABLE_IN_ALL void g_dir_rewind(GDir *dir)
typedefG_BEGIN_DECLS struct _GDir GDir
Definition gdir.h:39
GLIB_AVAILABLE_IN_2_80 GDir * g_dir_ref(GDir *dir)
GLIB_AVAILABLE_IN_ALL GDir * g_dir_open(const gchar *path, guint flags, GError **error)
GLIB_AVAILABLE_IN_ALL void g_dir_close(GDir *dir)
GLIB_AVAILABLE_IN_2_80 void g_dir_unref(GDir *dir)
GLIB_AVAILABLE_IN_ALL const gchar * g_dir_read_name(GDir *dir)
#define GLIB_AVAILABLE_IN_ALL
#define GLIB_AVAILABLE_IN_2_80
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
unsigned int guint
Definition gtypes.h:61
static void error(LoadState *S, const char *why)