diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:42 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:42 +0000 |
commit | 2e88b0d462b9dc068096c6be7f0ba49e21f7e1c7 (patch) | |
tree | 593e0ce8381a7c061a5ea8f3f55d7814a34f58e2 /Printstr.h | |
parent | 4382611f85dc0dcbfc7cca9a4ba175b3bc83da14 (diff) |
XFree86 4.3.0.1
Diffstat (limited to 'Printstr.h')
-rw-r--r-- | Printstr.h | 95 |
1 files changed, 73 insertions, 22 deletions
@@ -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_ */ - |