XLIB FUNCTIONS XSaveContext(3x11)
NAME
XSaveContext, XFindContext, XDeleteContext, XUniqueContext -
associative look-up routines
SYNTAXcc [ flag... ] file... -lX11 [ library... ]
int XSaveContext(Display *display, XID rid, XContext con-
text, XPointer data);int XFindContext(Display *display, XID rid, XContext con-
text, XPointer *data_return);
int XDeleteContext(Display *display, XID rid, XContext con-
text);XContext XUniqueContext(void);
ARGUMENTS context Specifies the context type to which the data belongs.data Specifies the data to be associated with the win-
dow and type.data_return
Returns the data. display Specifies the connection to the X server. rid Specifies the resource ID with which the data is associated.DESCRIPTION
If an entry with the specified resource ID and type alreadyexists, XSaveContext overrides it with the specified con-
text. The XSaveContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOMEM (out of memory). Because it is a return value, the data is a pointer. The XFindContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors areXCNOENT (context-not-found).
The XDeleteContext function deletes the entry for the given resource ID and type from the data structure. This function returns the same error codes that XFindContext returns if called with the same arguments. XDeleteContext does not free the data whose address was saved. X Version 11 Last change: libX11 1.3.5 1 XLIB FUNCTIONS XSaveContext(3x11)The XUniqueContext function creates a unique context type
that may be used in subsequent calls to XSaveContext.SEE ALSO
Xlib - C Language X Interface
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libx11 ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libX11 1.3.5 2