]>
Commit | Line | Data |
---|---|---|
fa73b229 | 1 | /* |
354aadbe | 2 | * "$Id: ipp-private.h 11984 2014-07-02 13:16:59Z msweet $" |
fa73b229 | 3 | * |
7e86f2f6 | 4 | * Private IPP definitions for CUPS. |
fa73b229 | 5 | * |
7e86f2f6 MS |
6 | * Copyright 2007-2014 by Apple Inc. |
7 | * Copyright 1997-2006 by Easy Software Products. | |
fa73b229 | 8 | * |
7e86f2f6 MS |
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/". | |
fa73b229 | 14 | * |
7e86f2f6 | 15 | * This file is subject to the Apple OS-Developed Software exception. |
fa73b229 | 16 | */ |
17 | ||
18 | #ifndef _CUPS_IPP_PRIVATE_H_ | |
19 | # define _CUPS_IPP_PRIVATE_H_ | |
20 | ||
21 | /* | |
22 | * Include necessary headers... | |
23 | */ | |
24 | ||
71e16022 | 25 | # include <cups/ipp.h> |
fa73b229 | 26 | |
27 | ||
28 | /* | |
29 | * C++ magic... | |
30 | */ | |
31 | ||
32 | # ifdef __cplusplus | |
33 | extern "C" { | |
34 | # endif /* __cplusplus */ | |
35 | ||
36 | ||
1f6f3dbc MS |
37 | /* |
38 | * Constants... | |
39 | */ | |
40 | ||
41 | # define IPP_BUF_SIZE (IPP_MAX_LENGTH + 2) | |
42 | /* Size of buffer */ | |
43 | ||
44 | ||
8ca02f3c | 45 | /* |
46 | * Structures... | |
47 | */ | |
48 | ||
49 | typedef struct /**** Attribute mapping data ****/ | |
50 | { | |
5a738aea | 51 | int multivalue; /* Option has multiple values? */ |
8ca02f3c | 52 | const char *name; /* Option/attribute name */ |
53 | ipp_tag_t value_tag; /* Value tag for this attribute */ | |
54 | ipp_tag_t group_tag; /* Group tag for this attribute */ | |
dcb445bc MS |
55 | ipp_tag_t alt_group_tag; /* Alternate group tag for this |
56 | * attribute */ | |
a469f8a5 | 57 | const ipp_op_t *operations; /* Allowed operations for this attr */ |
8ca02f3c | 58 | } _ipp_option_t; |
59 | ||
60 | ||
fa73b229 | 61 | /* |
62 | * Prototypes for private functions... | |
63 | */ | |
64 | ||
a469f8a5 MS |
65 | #ifdef DEBUG |
66 | extern const char *_ippCheckOptions(void); | |
67 | #endif /* DEBUG */ | |
8ca02f3c | 68 | extern _ipp_option_t *_ippFindOption(const char *name); |
fa73b229 | 69 | |
fa73b229 | 70 | /* |
71 | * C++ magic... | |
72 | */ | |
73 | ||
74 | # ifdef __cplusplus | |
75 | } | |
76 | # endif /* __cplusplus */ | |
77 | #endif /* !_CUPS_IPP_H_ */ | |
78 | ||
79 | /* | |
354aadbe | 80 | * End of "$Id: ipp-private.h 11984 2014-07-02 13:16:59Z msweet $". |
fa73b229 | 81 | */ |