]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/dir.h
Update svn:keyword properties.
[thirdparty/cups.git] / cups / dir.h
CommitLineData
ef416fc2 1/*
f2d18633 2 * "$Id$"
ef416fc2 3 *
321d8d57 4 * Public directory definitions for CUPS.
ef416fc2 5 *
6 * This set of APIs abstracts enumeration of directory entries.
7 *
321d8d57 8 * Copyright 2007-2011 by Apple Inc.
d09495fa 9 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 10 *
11 * These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 16 */
17
18#ifndef _CUPS_DIR_H_
19# define _CUPS_DIR_H_
20
21
22/*
23 * Include necessary headers...
24 */
25
2fb76298 26# include "versioning.h"
ef416fc2 27# include <sys/stat.h>
28
29
30/*
31 * C++ magic...
32 */
33
d09495fa 34# ifdef __cplusplus
ef416fc2 35extern "C" {
d09495fa 36# endif /* __cplusplus */
ef416fc2 37
38
39/*
40 * Data types...
41 */
42
43typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/
44
45typedef struct cups_dentry_s /**** Directory entry type ****/
46{
47 char filename[260]; /* File name */
48 struct stat fileinfo; /* File information */
49} cups_dentry_t;
50
51
52/*
53 * Prototypes...
54 */
55
2fb76298
MS
56extern void cupsDirClose(cups_dir_t *dp) _CUPS_API_1_2;
57extern cups_dir_t *cupsDirOpen(const char *directory) _CUPS_API_1_2;
58extern cups_dentry_t *cupsDirRead(cups_dir_t *dp) _CUPS_API_1_2;
59extern void cupsDirRewind(cups_dir_t *dp) _CUPS_API_1_2;
ef416fc2 60
61
d09495fa 62# ifdef __cplusplus
ef416fc2 63}
d09495fa 64# endif /* __cplusplus */
ef416fc2 65#endif /* !_CUPS_DIR_H_ */
66
67/*
f2d18633 68 * End of "$Id$".
ef416fc2 69 */