/* * OpenPrinting Vector Printer Driver API Definitions [opvp.h] * * Copyright (c) 2006 Free Standards Group * Copyright (c) 2006 Fuji Xerox Printing Systems Co., Ltd. * Copyright (c) 2006 Canon Inc. * Copyright (c) 2003-2006 AXE Inc. * * All Rights Reserverd. * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that both that copyright notice and this permission notice * appear in supporting documentation. * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* 2007 Modified for OPVP 1.0 by BBR Inc. */ #ifndef _OPVP_H_ #define _OPVP_H_ /* Return Values and Error Codes */ #define OPVP_OK 0 /* -1 for errors */ #define OPVP_FATALERROR -1 /* error: cannot be recovered */ #define OPVP_BADREQUEST -2 /* error: called where it should not be called */ #define OPVP_BADCONTEXT -3 /* error: invalid printer context */ #define OPVP_NOTSUPPORTED -4 /* error: combination of parameters are set which cannot be handled by driver or printer */ #define OPVP_JOBCANCELED -5 /* error: job has been canceled by some cause */ #define OPVP_PARAMERROR -6 /* error: invalid parameter */ #define OPVP_VERSIONERROR -7 /* error: invalid API version */ /* Basic Types */ typedef int opvp_dc_t; /* driver/device context */ typedef int opvp_result_t; /* return value */ typedef unsigned char opvp_byte_t; /* BYTE */ typedef unsigned char opvp_char_t; /* character (string) */ typedef int opvp_int_t; /* integer */ typedef int opvp_fix_t; /* fixed integer */ typedef float opvp_float_t; /* float */ typedef unsigned int opvp_flag_t; /* flags */ typedef unsigned int opvp_rop_t; /* raster operation */ /* for opvp_fix_t */ #define OPVP_FIX_FRACT_WIDTH 8 #define OPVP_FIX_FRACT_DENOM (1<