[ Previous | Next | Contents | Glossary | Home | Search ]
x11 R6 Technical Reference

XInitExtension Extension Function

Purpose

Determines if the extension exists.

Library

Enhanced X-Windows Library (libXext.a)

C Syntax

XExtCodes *XinitExtension(DisplayPtr, Name)
Display *DisplayPtr;
char *Name;

Description

The XinitExtension extension function determines if the extension exists. Then, it allocates storage for maintaining the information about the extension on the connection, chains this onto the extension list for the connection, and returns the information the stub implementor needs to access the extension.

The extension number in the XExtCodes data structure is needed in the other calls that follow. This extension number is unique only to a single connection.

Parameters

DisplayPtr Specifies a pointer to the display.
Name Specifies the name of the extension.

Return Values

Null Indicates the extension does not exist.

Related Information

Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.

AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.


[ Previous | Next | Contents | Glossary | Home | Search ]