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

XCursorQueryVersion Extension Function

Purpose

Determines whether the major and minor version numbers needed by the client are supported by the server.

Library

Enhanced X-Windows Library (libXext.a)

C Syntax

Status XCursorQueryVersion(DisplayPtr, MajorVersionPointer, MinorVersionPointer)
Display *DisplayPtr;
short *MajorVersionPointer;
short*MinorVersionPointer;

Description

The XCursorQueryVersion extension function specifies the major and minor version numbers that the client needs, and returns the major and minor version numbers that the server supports. If the server supports the version that the client needs, the MajorVersionPointer and MinorVersionPointer parameters are filled in and a non-zero value is returned. If the server does not support what the client needs, MajorVersionPointer and MinorVersionPointer are left untouched, and a value of zero is returned. The current aixCursorMajorVersion value is 1; the aixCursorMinorVersion value is 0.

Parameters

DisplayPtr Specifies the connection to the X server.
MajorVersionPointer Specifies the client major version number needed; returns the major version number for the server.
MinorVersionPointer Specifies the client minor version number needed; returns the minor version number for the server.

Return Values

Nonzero Indicates the server version supports the required client version.
0 Indicates the server version does not support the required client version.

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 ]