Query: xlookupassoc
OS: hpux
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XLookUpAssoc() XLookUpAssoc()
Name
XLookUpAssoc - obtain data from an association table.
Synopsis
char * XLookUpAssoc(display, table, x_id)
Display *display;
XAssocTable *table;
XID x_id;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
table Specifies the association table.
x_id Specifies the X resource ID.
Returns
The data from the association table.
Description
This function is provided for compatibility with X Version 10. To use it you must include the file <X11/X10.h> and link with the library
-loldX.
Association tables provide a way of storing data locally and accessing by ID. XLookUpAssoc() retrieves the data stored in an XAssocTable
by its XID. If the matching XID can be found in the table, the routine returns the data associated with it. If the x_id cannot be found
in the table the routine returns NULL.
For more information on association tables, see Volume One, Appendix B, X10 Compatibility.
Structures
typedef struct {
XAssoc *buckets; /* pointer to first bucket in bucket array */
int size; /* table size (number of buckets) */
} XAssocTable;
typedef struct _XAssoc {
struct _XAssoc *next; /* next object in this bucket */
struct _XAssoc *prev; /* previous object in this bucket */
Display *display; /* display which owns the ID */
XID x_id; /* X Window System ID */
char *data; /* pointer to untyped memory */
} XAssoc;
See Also
XCreateAssocTable(), XDeleteAssoc(), XDestroyAssocTable(), XMakeAssoc().
Xlib - Association Tables XLookUpAssoc()
| Related Man Pages |
|---|
| xfindcontext(3x11) - redhat |
| xsavecontext(3x11) - redhat |
| xuniquecontext(3x11) - redhat |
| xsavecontext(3) - centos |
| xtgetkeysymtable(1) - hpux |
| Similar Topics in the Unix Linux Community |
|---|
| PHP Man Pages Now Available (Over 10,000) |
| Is UNIX an open source OS ? |
| Sequence extraction |
| Tar Command |