]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/ipp-private.h
2 * "$Id: ipp-private.h 7259 2008-01-28 22:26:04Z mike $"
4 * Private IPP definitions for CUPS.
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2006 by Easy Software Products.
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/".
15 * This file is subject to the Apple OS-Developed Software exception.
18 #ifndef _CUPS_IPP_PRIVATE_H_
19 # define _CUPS_IPP_PRIVATE_H_
22 * Include necessary headers...
25 # include <cups/ipp.h>
34 # endif /* __cplusplus */
41 # define IPP_BUF_SIZE (IPP_MAX_LENGTH + 2)
49 typedef struct _ipp_buffer_s
/**** Read/write buffer ****/
51 unsigned char d
[IPP_BUF_SIZE
];/* Data buffer */
52 struct _ipp_buffer_s
*next
; /* Next buffer in list */
53 int used
; /* Is this buffer used? */
56 typedef struct /**** Attribute mapping data ****/
58 int multivalue
; /* Option has multiple values? */
59 const char *name
; /* Option/attribute name */
60 ipp_tag_t value_tag
; /* Value tag for this attribute */
61 ipp_tag_t group_tag
; /* Group tag for this attribute */
66 * Prototypes for private functions...
69 extern ipp_attribute_t
*_ippAddAttr(ipp_t
*, int);
70 extern _ipp_option_t
*_ippFindOption(const char *name
);
71 extern void _ippFreeAttr(ipp_attribute_t
*);
80 # endif /* __cplusplus */
81 #endif /* !_CUPS_IPP_H_ */
84 * End of "$Id: ipp-private.h 7259 2008-01-28 22:26:04Z mike $".