]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/dir.h
2 * Public directory definitions for CUPS.
4 * This set of APIs abstracts enumeration of directory entries.
6 * Copyright 2007-2011 by Apple Inc.
7 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
9 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
17 * Include necessary headers...
20 # include "versioning.h"
21 # include <sys/stat.h>
30 # endif /* __cplusplus */
37 typedef struct _cups_dir_s cups_dir_t
; /**** Directory type ****/
39 typedef struct cups_dentry_s
/**** Directory entry type ****/
41 char filename
[260]; /* File name */
42 struct stat fileinfo
; /* File information */
50 extern void cupsDirClose(cups_dir_t
*dp
) _CUPS_API_1_2
;
51 extern cups_dir_t
*cupsDirOpen(const char *directory
) _CUPS_API_1_2
;
52 extern cups_dentry_t
*cupsDirRead(cups_dir_t
*dp
) _CUPS_API_1_2
;
53 extern void cupsDirRewind(cups_dir_t
*dp
) _CUPS_API_1_2
;
58 # endif /* __cplusplus */
59 #endif /* !_CUPS_DIR_H_ */