]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/dir.h
Load cups into easysw/current.
[thirdparty/cups.git] / cups / dir.h
1 /*
2 * "$Id$"
3 *
4 * Public directory definitions for the Common UNIX Printing System (CUPS).
5 *
6 * This set of APIs abstracts enumeration of directory entries.
7 *
8 * Copyright 2007 by Apple Inc.
9 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
10 *
11 * These coded instructions, statements, and computer programs are the
12 * property of Apple Inc. and are protected by Federal copyright
13 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
14 * which should have been included with this file. If this file is
15 * file is missing or damaged, see the license at "http://www.cups.org/".
16 */
17
18 #ifndef _CUPS_DIR_H_
19 # define _CUPS_DIR_H_
20
21
22 /*
23 * Include necessary headers...
24 */
25
26 # include <sys/stat.h>
27
28
29 /*
30 * C++ magic...
31 */
32
33 # ifdef __cplusplus
34 extern "C" {
35 # endif /* __cplusplus */
36
37
38 /*
39 * Data types...
40 */
41
42 typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/
43
44 typedef struct cups_dentry_s /**** Directory entry type ****/
45 {
46 char filename[260]; /* File name */
47 struct stat fileinfo; /* File information */
48 } cups_dentry_t;
49
50
51 /*
52 * Prototypes...
53 */
54
55 extern void cupsDirClose(cups_dir_t *dp);
56 extern cups_dir_t *cupsDirOpen(const char *directory);
57 extern cups_dentry_t *cupsDirRead(cups_dir_t *dp);
58 extern void cupsDirRewind(cups_dir_t *dp);
59
60
61 # ifdef __cplusplus
62 }
63 # endif /* __cplusplus */
64 #endif /* !_CUPS_DIR_H_ */
65
66 /*
67 * End of "$Id$".
68 */