]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/dir.h
Load cups into easysw/current.
[thirdparty/cups.git] / cups / dir.h
CommitLineData
ef416fc2 1/*
f7faf1f5 2 * "$Id$"
ef416fc2 3 *
4 * Public directory definitions for the Common UNIX Printing System (CUPS).
5 *
6 * This set of APIs abstracts enumeration of directory entries.
7 *
bc44d920 8 * Copyright 2007 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
26# include <sys/stat.h>
27
28
29/*
30 * C++ magic...
31 */
32
d09495fa 33# ifdef __cplusplus
ef416fc2 34extern "C" {
d09495fa 35# endif /* __cplusplus */
ef416fc2 36
37
38/*
39 * Data types...
40 */
41
42typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/
43
44typedef struct cups_dentry_s /**** Directory entry type ****/
45{
46 char filename[260]; /* File name */
47 struct stat fileinfo; /* File information */
48} cups_dentry_t;
49
50
51/*
52 * Prototypes...
53 */
54
55extern void cupsDirClose(cups_dir_t *dp);
56extern cups_dir_t *cupsDirOpen(const char *directory);
57extern cups_dentry_t *cupsDirRead(cups_dir_t *dp);
58extern void cupsDirRewind(cups_dir_t *dp);
59
60
d09495fa 61# ifdef __cplusplus
ef416fc2 62}
d09495fa 63# endif /* __cplusplus */
ef416fc2 64#endif /* !_CUPS_DIR_H_ */
65
66/*
f7faf1f5 67 * End of "$Id$".
ef416fc2 68 */