XSaveContext()XSaveContext()NameXSaveContext – save a data value corresponding to a resource ID and
context type (not graphics context).
Synopsis
int XSaveContext(display, rid, context, data)
Display *display;
XID rid;
XContext context;
caddr_t data;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
rid Specifies the ID of the resource with which the data is asso‐
ciated.
context Specifies the context type to which the data corresponds.
data Specifies the data to be associated with the resource and
context.
Returns
XCNOMEM (a non-zero error code) if an error has occurred or zero (0)
otherwise.
DescriptionXSaveContext() saves data to the context manager database, according to
the specified resource and context ID. The context manager is used for
associating data with windows within an application. The client must
have called XUniqueContext() to get the context ID before calling this
function. The meaning of the data is indicated by the context ID, but
is completely up to the client.
If an entry with the specified resource and context ID already exists,
XSaveContext() writes over it with the specified data.
The XSaveContext() function returns XCNOMEM (a non-zero error code) if
an error has occurred and zero (0) otherwise. For more information,
see the description of the context manager in Volume One, Chapter 15,
Other Programming Techniques.
Structures
typedef int XContext;
See AlsoXDeleteContext(), XFindContext(), XUniqueContext().
Xlib - Context Manager XSaveContext()