]> 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 *
d09495fa 8 * Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 9 *
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
15 * at:
16 *
17 * Attn: CUPS Licensing Information
18 * Easy Software Products
19 * 44141 Airport View Drive, Suite 204
20 * Hollywood, Maryland 20636 USA
21 *
22 * Voice: (301) 373-9600
23 * EMail: cups-info@cups.org
24 * WWW: http://www.cups.org
25 */
26
27#ifndef _CUPS_DIR_H_
28# define _CUPS_DIR_H_
29
30
31/*
32 * Include necessary headers...
33 */
34
35# include <sys/stat.h>
36
37
38/*
39 * C++ magic...
40 */
41
d09495fa 42# ifdef __cplusplus
ef416fc2 43extern "C" {
d09495fa 44# endif /* __cplusplus */
ef416fc2 45
46
47/*
48 * Data types...
49 */
50
51typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/
52
53typedef struct cups_dentry_s /**** Directory entry type ****/
54{
55 char filename[260]; /* File name */
56 struct stat fileinfo; /* File information */
57} cups_dentry_t;
58
59
60/*
61 * Prototypes...
62 */
63
64extern void cupsDirClose(cups_dir_t *dp);
65extern cups_dir_t *cupsDirOpen(const char *directory);
66extern cups_dentry_t *cupsDirRead(cups_dir_t *dp);
67extern void cupsDirRewind(cups_dir_t *dp);
68
69
d09495fa 70# ifdef __cplusplus
ef416fc2 71}
d09495fa 72# endif /* __cplusplus */
ef416fc2 73#endif /* !_CUPS_DIR_H_ */
74
75/*
f7faf1f5 76 * End of "$Id$".
ef416fc2 77 */