carta
XpDestroyContext(3)

XpDestroyContext3

Gets the current print context-id for a display connection.

Usage

cc [flag ...] file ... -lXp [library ...]

Display *display;

XPContext print_context;

Arguments

display

Specifies a pointer to the Display structure; returned from XOpenDisplay.

print_context

Specifies the print context to destroy.

Overview

XpDestroyContext closes any outstanding associations between the print context and any display connections, and then destroys the print context. All display connections using the print context will no longer be able to access the print context.

Destroying a print context will cause any in-progress pages, documents and jobs to be canceled within the X Print Server.

Diagnostics

XPBadContext

A valid print context-id has not been set prior to making this call.

From libxp 1.0.4-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.