~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to glib/gdir.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * Boston, MA 02111-1307, USA.
22
22
 */
23
23
 
24
 
#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
25
 
#error "Only <glib.h> can be included directly."
26
 
#endif
27
 
 
28
24
#ifndef __G_DIR_H__
29
25
#define __G_DIR_H__
30
26
 
 
27
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
 
28
#error "Only <glib.h> can be included directly."
 
29
#endif
 
30
 
31
31
#include <glib/gerror.h>
32
32
 
33
33
G_BEGIN_DECLS
34
34
 
35
35
typedef struct _GDir GDir;
36
36
 
37
 
#ifndef __GTK_DOC_IGNORE__
38
 
#ifdef G_OS_WIN32
39
 
/* For DLL ABI stability, keep old names for old (non-UTF-8) functionality. */
40
 
#define g_dir_open g_dir_open_utf8
41
 
#define g_dir_read_name g_dir_read_name_utf8
42
 
#endif
43
 
#endif
44
 
 
 
37
GLIB_AVAILABLE_IN_ALL
45
38
GDir    *                g_dir_open           (const gchar  *path,
46
39
                                               guint         flags,
47
40
                                               GError      **error);
 
41
GLIB_AVAILABLE_IN_ALL
48
42
const gchar *            g_dir_read_name      (GDir         *dir);
 
43
GLIB_AVAILABLE_IN_ALL
49
44
void                     g_dir_rewind         (GDir         *dir);
 
45
GLIB_AVAILABLE_IN_ALL
50
46
void                     g_dir_close          (GDir         *dir);
51
47
 
 
48
#ifdef G_OS_WIN32
 
49
#define g_dir_open      g_dir_open_utf8
 
50
#define g_dir_read_name g_dir_read_name_utf8
 
51
 
 
52
GLIB_AVAILABLE_IN_ALL
 
53
GDir        *g_dir_open_utf8      (const gchar  *path,
 
54
                                   guint         flags,
 
55
                                   GError      **error);
 
56
GLIB_AVAILABLE_IN_ALL
 
57
const gchar *g_dir_read_name_utf8 (GDir         *dir);
 
58
#endif /* G_OS_WIN32 */
 
59
 
52
60
G_END_DECLS
53
61
 
54
62
#endif /* __G_DIR_H__ */