]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/dir.h
4 * Public directory definitions for the Common UNIX Printing System (CUPS).
6 * This set of APIs abstracts enumeration of directory entries.
8 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
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
17 * Attn: CUPS Licensing Information
18 * Easy Software Products
19 * 44141 Airport View Drive, Suite 204
20 * Hollywood, Maryland 20636 USA
22 * Voice: (301) 373-9600
23 * EMail: cups-info@cups.org
24 * WWW: http://www.cups.org
32 * Include necessary headers...
35 # include <sys/stat.h>
44 # endif /* __cplusplus */
51 typedef struct _cups_dir_s cups_dir_t
; /**** Directory type ****/
53 typedef struct cups_dentry_s
/**** Directory entry type ****/
55 char filename
[260]; /* File name */
56 struct stat fileinfo
; /* File information */
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
);
72 # endif /* __cplusplus */
73 #endif /* !_CUPS_DIR_H_ */