XpStartJob(3Xp)
okay bestie, this is XpStartJob(3Xp) from the XPRINT FUNCTIONS manual section β the function that literally says βa print job starts here.β π
β¨
β¨ NAME β¨
XpStartJob β Indicates the beginning of a single print job.
π οΈ SYNOPSIS π οΈ
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
void XpStartJob ( display, output_mode )
Display *display;
XPSaveData output_mode;
π ARGUMENTS π
displayβ Specifies a pointer to theDisplaystructure; returned fromXOpenDisplay.output_modeβ Specifies how the printer output data is to be handled.
π DESCRIPTION π
okay so XpStartJob signals the beginning of a new print job. periodt. π¬
if output_mode is XPSpool, the X Print Server will automatically spool the printer output. if output_mode is XPGetData, then the X Print Server buffers the document output for retrieval by XpGetDocumentData. in this case, the print server suspends processing further requests on this print context until some other client sends XpGetDocumentData. subsequent operations that use the print context may be suspended at any time pending the processing of XpGetDocumentData replies to read any buffered output. π
XpStartJob sets the job-owner job attribute (included in the XPJobAttr pool) immediately prior to issuing the PrintStartJob request. on POSIX systems, the job-owner attribute is set using getpwuid_r on the result of getuid. this attribute may be used by the X Print Server to identify the user to the spooler. π΅οΈββοΈ
all changes to the XPJobAttr attribute pool (see XpSetAttributes) must be made prior to calling XpStartJob, after which an XPBadSequence will be generated if changes are attempted, until XpEndJob is called. so like, do your attribute edits first, bestie. π₯
for clients selecting XPPrintMask (see XpSelectInput), the event XPPrintNotify will be generated with its detail field set to XPStartJobNotify when the X Print Server has completed the PrintStartJob request. π
conceptually, a βJobβ is a collection of βDocumentsβ, where each Document is in turn a collection of βPagesβ. depending on the print facilities underlying the X Print Server, these delineations may be mapped by a DDX driver into real functionality (e.g. see the server attribute multiple-documents-supported). π¦
π§ STRUCTURES π§
the XPSaveData values for output_mode are defined in <X11/extensions/Print.h>. : π
#define XPSpool 1 /β Job data sent to spooler */
#define XPGetData 2 /β Job data via XpGetDocumentData */
π DIAGNOSTICS π
BadValueβ The value specified foroutput_modeis not valid.XPBadContextβ A valid print context-id has not been set prior to making this call.XPBadSequenceβ The function was not called in the proper order with respect to the other X Print Service Extension calls (example,XpEndDocprior toXpStartDoc).
π SEE ALSO π
go read these too, iykyk: π
XpEndJob(3Xp)XpGetDocumentData(3Xp)XpSelectInput(3Xp)XpSetAttributes(3Xp)XpStartJob(3Xp)
okay thatβs the whole page, bestie β footer sign-off says source/version X Version 11 and libXp 1.0.4, with XpStartJob(3Xp) as the footer tag (no extra date line in this version, just so you know). periodt. πβ¨
π¦ where this page comes from
- arch rolling: libxp 1.0.4-3 Β· X11 AND X11-distribute-modifications-variant
- nixos 26.05: libxp 1.0.4
- nixpkgs unstable: libxp 1.0.4
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- Copyright 1996 Hewlett-Packard Company
- Copyright 1996 International Business Machines Corp
- Copyright 1996, 1999, 2004, Oracle and/or its affiliates. All rights reserved
- Copyright 1996 Novell, Inc
- Copyright 1996 Digital Equipment Corp
- Copyright 1996 Fujitsu Limited
- Copyright 1996 Hitachi, Ltd
- Copyright 1996 X Consortium, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms