2 * "$Id: dir.h 9771 2011-05-12 05:21:56Z mike $"
4 * Public directory definitions for CUPS.
6 * This set of APIs abstracts enumeration of directory entries.
8 * Copyright 2007-2011 by Apple Inc.
9 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
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/".
23 * Include necessary headers...
26 # include "versioning.h"
27 # include <sys/stat.h>
36 # endif /* __cplusplus */
43 typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/
45 typedef struct cups_dentry_s /**** Directory entry type ****/
47 char filename[260]; /* File name */
48 struct stat fileinfo; /* File information */
56 extern void cupsDirClose(cups_dir_t *dp) _CUPS_API_1_2;
57 extern cups_dir_t *cupsDirOpen(const char *directory) _CUPS_API_1_2;
58 extern cups_dentry_t *cupsDirRead(cups_dir_t *dp) _CUPS_API_1_2;
59 extern void cupsDirRewind(cups_dir_t *dp) _CUPS_API_1_2;
64 # endif /* __cplusplus */
65 #endif /* !_CUPS_DIR_H_ */
68 * End of "$Id: dir.h 9771 2011-05-12 05:21:56Z mike $".