12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTXAddToExtensionList(structure, ext_data)XExtData **structure;XExtData *ext_data;structureext_dataSpecifies the extension list.Specifies the extension data structure to add.The structure argument is a pointer to one of the data structures enumerated above. You must initializeext_data->number with the extension number before calling this function.XExtData *XFindOnExtensionList(structure, number)struct _XExtData **structure;int number;structurenumberSpecifies the extension list.Specifies the extension number from XInitExtension.The XFindOnExtensionList function returns the first extension data structure for the extensionnumbered number. Itisexpected that an extension will add at most one extension data structureto any single data structure’s extension data list. There is no way to find additional structures.The XAllocID macro, which allocates and returns a resource ID, is defined in .XAllocID (display)Display *display;displaySpecifies the connection to the X server.This macro is a call through the Display structure to an internal resource ID allocator. Itreturnsaresource ID that you can use when creating new resources.The XAllocIDs macro allocates and returns an array of resource ID.XAllocIDs (display, ids_return, count)Display *display;XID *ids_return;int count;displayids_returnrepSpecifies the connection to the X server.Returns the resource IDs.Specifies the number of resource IDs requested.This macro is a call through the Display structure to an internal resource ID allocator. Itreturnsresource IDs to the array supplied by the caller. Tocorrectly handle automatic reuse of resourceIDs, you must call XAllocIDs when requesting multiple resource IDs. This call might generateprotocol requests.450

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!