This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



XSaveContext(3)                                XLIB FUNCTIONS                                XSaveContext(3)



NAME
       XSaveContext, XFindContext, XDeleteContext, XUniqueContext - associative look-up routines

SYNTAX
       int XSaveContext(Display *display, XID rid, XContext context, XPointer data);

       int XFindContext(Display *display, XID rid, XContext context, XPointer *data_return);

       int XDeleteContext(Display *display, XID rid, XContext context);

       XContext XUniqueContext(void);

ARGUMENTS
       context   Specifies the context type to which the data belongs.

       data      Specifies the data to be associated with the window 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 already exists, XSaveContext overrides it with
       the specified context.  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 are XCNOENT (context-not-found). (context-notfound).
       found).

       The XDeleteContext function deletes the entry for the given resource ID and type from the data struc-ture. structure.
       ture.  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.

       The XUniqueContext function creates a unique context type that may be used in subsequent calls to
       XSaveContext.

SEE ALSO
       Xlib - C Language X Interface



X Version 11                                    libX11 1.2.1                                 XSaveContext(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...