XpCancelJob(3Xp)
π XpCancelJob(3Xp) π
hey bestie, welcome to the XPRINT FUNCTIONS corner of the manual. this is the XpCancelJob(3Xp) page, and it is literally about cancelling one single print job. one job. thatβs the assignment. periodt. π
πΈ NAME πΈ
XpCancelJob β cancels a single print job. just one, bestie. not a whole queue situation. π
β¨ SYNOPSIS β¨
the whole βhow do i even call thisβ vibe:
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
void XpCancelJob ( display, discard )
Display *display;
Bool discard;
π¦ ARGUMENTS π¦
displayβ this is a pointer to theDisplaystructure, and you get it back fromXOpenDisplay. yes, thatDisplay. iconic. πdiscardβ when this isTRUE, it means allXPPrintNotifyevents should be discarded. bye-bye, events. π
π₯ DESCRIPTION π₯
okay so XpCancelJob cancels an in-progress job. like, mid-print. mid-vibe. itβs doing the cancelling thing.
if the job was started with output_mode XPGetData, then the data stream to XpGetDocumentData is terminated. and ngl, for many page description languages, that kind of arbitrary termination may invalidate the output. π so yeah, it can get messy.
if the job was started with output_mode XPSpool, then depending on the driver and spooler configuration, the entire job may be canceled or a partial job may be generated. so itβs giving βit depends,β which is not always the most slay answer, but itβs the true one. π
if discard is TRUE, then all XPPrintNotify events with a detail field of XPEndPageNotify, XPEndDocNotify, or XPEndJobNotify are discarded before XpCancelJob returns. like, theyβre gone before you even get back. π«Ά
for clients selecting XPPrintMask (see XpSelectInput), the event XPPrintNotify will be generated with its detail field set to XPEndJobNotify. thatβs the event tea. ββ¨
π DIAGNOSTICS π
XPBadContextβ a valid print context-id has not been set prior to making this call. no valid context, no cute little cancel. π¬XPBadSequenceβ the function was not called in the proper order with respect to the other X Print Service Extension calls (for example,XpEndJobprior toXpStartJob). out-of-order calls are not the main character energy weβre looking for. π
π SEE ALSO π
XpEndJob(3Xp)XpGetDocumentData(3Xp)XpSelectInput(3Xp)XpStartJob(3Xp)
k bye bestie π this page came from X Version 11, libXp 1.0.4, and the XpCancelJob(3Xp) manual. mwah ππ
π¦ 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