XLookUpAssoc man page on HP-UX

Printed from http://www.polarhome.com/service/man/?qf=XLookUpAssoc&af=0&tf=2&of=HP-UX

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(),	 XMakeAs‐
  soc().

Xlib - Association Tables					XLookUpAssoc()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net