]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/dir.h
98a6767d4f322591bb25e6c132f38fc6eab3c21e
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 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
21 * Include necessary headers...
24 # include "versioning.h"
25 # include <sys/stat.h>
34 # endif /* __cplusplus */
41 typedef struct _cups_dir_s cups_dir_t
; /**** Directory type ****/
43 typedef struct cups_dentry_s
/**** Directory entry type ****/
45 char filename
[260]; /* File name */
46 struct stat fileinfo
; /* File information */
54 extern void cupsDirClose(cups_dir_t
*dp
) _CUPS_API_1_2
;
55 extern cups_dir_t
*cupsDirOpen(const char *directory
) _CUPS_API_1_2
;
56 extern cups_dentry_t
*cupsDirRead(cups_dir_t
*dp
) _CUPS_API_1_2
;
57 extern void cupsDirRewind(cups_dir_t
*dp
) _CUPS_API_1_2
;
62 # endif /* __cplusplus */
63 #endif /* !_CUPS_DIR_H_ */