MirBSD manpage: XDeleteContext(3), XFindContext(3), XSaveContext(3), XUniqueContext(3)

XSaveContext(3X11)       XLIB FUNCTIONS        XSaveContext(3X11)


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


     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-

     XContext XUniqueContext(void);


     context   Specifies the context type to which the data

     data      Specifies the data to be associated with the win-
               dow and type.

               Returns the data.

     display   Specifies the connection to the X server.

     rid       Specifies the resource ID with which the data is


     If an entry with the specified resource ID and type already
     exists, 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 are
     XCNOENT (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.

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

XFree86                   Version 4.5.0                         1

XSaveContext(3X11)       XLIB FUNCTIONS        XSaveContext(3X11)


     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.