From 2e88b0d462b9dc068096c6be7f0ba49e21f7e1c7 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:48:42 +0000 Subject: XFree86 4.3.0.1 --- Printstr.h | 95 +++++++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 73 insertions(+), 22 deletions(-) (limited to 'Printstr.h') diff --git a/Printstr.h b/Printstr.h index 2adda4f..a518da8 100644 --- a/Printstr.h +++ b/Printstr.h @@ -43,6 +43,7 @@ ** ****************************************************************************** *****************************************************************************/ +/* $XFree86: xc/include/extensions/Printstr.h,v 1.6 2001/08/23 12:46:11 alanh Exp $ */ #ifndef _XpPrintstr_H_ @@ -661,9 +662,8 @@ extern XPHinterProc _xp_hinter_proc; extern char *_xp_hinter_desc; extern int _xp_hinter_init; -#endif /* _XP_PRINT_SERVER_ */ +#else /* _XP_PRINT_SERVER_ */ -#ifdef _XP_PRINT_SERVER_ /*********************************************************************** * * Server-only definitions shared between the extension and DDX layers. @@ -676,27 +676,70 @@ extern int _xp_hinter_init; */ #define Suspended 84 +struct _XpContext; + extern void XpRegisterPrinterScreen( ScreenPtr pScreen, - int (*CreateContext)()); + int (*CreateContext)(struct _XpContext *)); typedef struct _xpprintFuncs { - int (*StartJob)(); /* pContext, client */ - int (*EndJob)(); /* pContext, client */ - int (*StartDoc)(); /* pContext, client */ - int (*EndDoc)(); /* pContext, client */ - int (*StartPage)(); /* pContext, pWin, client, exposures */ - int (*EndPage)(); /* pContext, client */ - int (*PutDocumentData)(); /* pContext,pDraw,pData,len_data,pFmt,len_fmt,pOpt,len_opt, client */ - int (*GetDocumentData)(); /* pContext,pData,len_data,pFmt,len_fmt,pOpt,len_opt, client */ - int (*DestroyContext)(); /* pContext, client */ - char *(*GetAttributes)(); /* pContext, pool */ - char *(*GetOneAttribute)(); /* pContext, pool, attr */ - int (*SetAttributes)(); /* pContext, pool, attrs */ - int (*AugmentAttributes)(); /* pContext, pool, attrs */ - int (*GetMediumDimensions)(); /* pPrintContext, pWidth, pHeight */ - int (*GetReproducibleArea)(); /* pPrintContext, pRect */ - int (*SetImageResolution)(); /* pPrintContext, imageRes, pStatus */ + int (*StartJob)( + struct _XpContext * /* pContext */, + Bool /* sendClientData */, + ClientPtr /* client */); + int (*EndJob)(struct _XpContext *, int); + int (*StartDoc)( + struct _XpContext * /* pContext */, + XPDocumentType /* type */); + int (*EndDoc)(struct _XpContext *, int); + int (*StartPage)( + struct _XpContext * /* pContext */, + WindowPtr /* pWin */); + int (*EndPage)( + struct _XpContext * /* pContext */, + WindowPtr /* pWin */); + int (*PutDocumentData)( + struct _XpContext * /* pContext */, + DrawablePtr /* pDraw */, + char * /* pData */, + int /* len_data */, + char * /* pDoc_fmt */, + int /* len_fmt */, + char * /* pOptions */, + int /* len_options */, + ClientPtr /* client */); + int (*GetDocumentData)( + struct _XpContext * /* pContext */, + ClientPtr /* client */, + int /* maxBufferSize */); + int (*DestroyContext)( + struct _XpContext *); /* pContext */ + char *(*GetAttributes)( + struct _XpContext *, + XPAttributes /* pool */); + char *(*GetOneAttribute)( + struct _XpContext * /* pContext */, + XPAttributes /* pool */, + char * /* attrs */); + int (*SetAttributes)( + struct _XpContext * /* pContext */, + XPAttributes /* pool */, + char * /* attrs */); + int (*AugmentAttributes)( + struct _XpContext * /* pContext */, + XPAttributes /* pool */, + char * /* attrs */); + int (*GetMediumDimensions)( + struct _XpContext * /* pPrintContext */, + CARD16 * /* pWidth */, + CARD16 * /* pHeight */); + int (*GetReproducibleArea)( + struct _XpContext * /* pPrintContext */, + xRectangle * /* pRect */); + int (*SetImageResolution)( + struct _XpContext * /* pPrintContext */, + int /* imageRes */, + Bool * /* pStatus */); } XpDriverFuncs, *XpDriverFuncsPtr; /* @@ -721,12 +764,20 @@ typedef struct _XpContext { int imageRes; } XpContextRec, *XpContextPtr; -extern XpContextPtr XpGetPrintContext( - ClientPtr client); +#include "fontstruct.h" /* FontResolutionPtr */ + +extern Bool XpAllocateContextPrivate(int, unsigned); +extern FontResolutionPtr XpGetClientResolutions(ClientPtr, int *); +extern XpContextPtr XpContextOfClient(ClientPtr); +extern XpContextPtr XpGetPrintContext(ClientPtr); +extern int XpAllocateContextPrivateIndex(void); +extern int XpRehashPrinterList(void); +extern void XpSetFontResFunc(ClientPtr); +extern void XpUnsetFontResFunc(ClientPtr); +extern void XpRegisterInitFunc(ScreenPtr, char *, int (*)(struct _XpContext *)); #endif /* _XP_PRINT_SERVER_ */ _XFUNCPROTOEND #endif /* _XpPrintstr_H_ */ - -- cgit v1.2.1