]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/dir.h
0fd52e8f148357bb34270f171b1ff7bfbd613c6d
[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 1997-2005 by Easy Software Products, all rights reserved.
9 *
10 * These coded instructions, statements, and computer programs are the
11 * property of Easy Software Products and are protected by Federal
12 * copyright law. Distribution and use rights are outlined in the file
13 * "LICENSE.txt" which should have been included with this file. If this
14 * file is missing or damaged please contact Easy Software Products
15 * at:
16 *
17 * Attn: CUPS Licensing Information
18 * Easy Software Products
19 * 44141 Airport View Drive, Suite 204
20 * Hollywood, Maryland 20636 USA
21 *
22 * Voice: (301) 373-9600
23 * EMail: cups-info@cups.org
24 * WWW: http://www.cups.org
25 */
26
27 #ifndef _CUPS_DIR_H_
28 # define _CUPS_DIR_H_
29
30
31 /*
32 * Include necessary headers...
33 */
34
35 # include <sys/stat.h>
36
37
38 /*
39 * C++ magic...
40 */
41
42 # ifdef _cplusplus
43 extern "C" {
44 # endif /* _cplusplus */
45
46
47 /*
48 * Data types...
49 */
50
51 typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/
52
53 typedef struct cups_dentry_s /**** Directory entry type ****/
54 {
55 char filename[260]; /* File name */
56 struct stat fileinfo; /* File information */
57 } cups_dentry_t;
58
59
60 /*
61 * Prototypes...
62 */
63
64 extern void cupsDirClose(cups_dir_t *dp);
65 extern cups_dir_t *cupsDirOpen(const char *directory);
66 extern cups_dentry_t *cupsDirRead(cups_dir_t *dp);
67 extern void cupsDirRewind(cups_dir_t *dp);
68
69
70 # ifdef _cplusplus
71 }
72 # endif /* _cplusplus */
73 #endif /* !_CUPS_DIR_H_ */
74
75 /*
76 * End of "$Id$".
77 */