/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
#ifndef _IPP_H
#define _IPP_H
/* $Id: ipp.h 146 2006-03-24 00:26:54Z njacobs $ */
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
#include <papi.h>
#include <inttypes.h>
enum {
IPP_TYPE_UNKNOWN = 0,
};
/*
* How closely do we conform to the spec when parsing? Do we
* a) Stop parsing only when we encounter an error that prevents us from
* continuing parsing (a server error or ridiculously malformed request)?
* b) Stop parsing when we know the server wouldn't be able to act on the
* response correctly, even if we can make sense of some of the data?
* c) Jawohl, Mein IPP Spec!
* The answer will usually be b, though a will be useful for debugging.
*/
enum {
};
/* Operation IDs */
enum {
/* ... */
/* ... */
};
enum {
/* Delimiter Tags */
/* Value Tags */
};
/* Response codes */
enum {
};
/* Job state codes */
enum {
};
/* exported functions */
/* internal functions shared between modules */
char *format, ...);
papi_attribute_t ***response);
extern char *ipp_uri_to_printer(char *uri);
extern char *job_template[];
extern char *job_description[];
extern char *printer_description[];
extern int is_keyword(char *value);
#ifdef __cplusplus
}
#endif
#endif /* _IPP_H */