XIQUERYVERSION(3)XIQUERYVERSION(3)NAME
XIQueryVersion - announce and query the support XI2 version.
SYNOPSIS
#include <X11/extensions/XInput2.h>
Status XIQueryVersion( Display *display,
int *major_version_inout,
int *minor_version_inout);
display
Specifies the connection to the X server.
major_version_inout
Specifies the client's supported XI2 version, and
returns the server's supported version.
minor_version_inout
Specifies the client's supported XI2 version, and
returns the server's supported version.
DESCRIPTION
XIQueryVersion announces the client's supported XI2 version to
the server and returns server's supported X Input version. Clients
are required to use XIQueryVersion instead of XGetExtensionVersion
if they use XI2 calls. The server may treat a client differently
depending on the supported version announced by the client.
The major_version_inout must be 2 or greater, otherwise a BadValue
error occurs.
If the server does not support XI2, XIQueryVersion returns BadRequest
to the client. Otherwise, XIQueryVersion returns Success. In both
cases major_version_inout and minor_version_inout are set to the
server's supported version.
Consecutive calls to XIQueryVersion by the same client always return the
first returned major.minor version. If the client requests a version
lower than the first returned major.minor version in a subsequent call, a
BadValue error occurs.
XIQueryVersion can generate a BadValue error.
EXAMPLES
int rc;
int major = 2;
int minor = 0;
rc = XIQueryVersion(dpy, &major, &minor);
if (rc == Success)
printf("XI2 supported. (%d.%d)
", major, minor);
else if (rc == BadRequest)
printf("No XI2 support. (%d.%d only)
", major, minor);
else
printf("Internal error
");
DIAGNOSTICS
BadValue
A value is outside of the permitted range.
03/09/2013 XIQUERYVERSION(3)
Check Out this Related Man Page
XGETEXTENSIONVERSION(3)XGETEXTENSIONVERSION(3)NAME
XGetExtensionVersion - query the version of the input extension.
SYNOPSIS
#include <X11/extensions/XInput.h>
XExtensionVersion *XGetExtensionVersion( Display *display,
char *name);
display
Specifies the connection to the X server.
name
Specifies the extension to be queried. The input
extension name is definedin the header file XI.h.
DESCRIPTION
The XGetExtensionVersion request is deprecated and should not
be used in XI2 applications. Clients issuing a XGetExtensionVersion
request will not be able to use XI2 features.
The XGetExtensionVersion request queries the version of the input
extension, and returns an XExtensionVersion structure. This structure
contains a major_version and minor_version number which can be compared
with constants defined in XI.h. Support for additional protocol
requests added to the input extension after its initial release
is indicated by a version number corresponding to the added
requests. Each version contains all the protocol requests
contained by previous versions.
You should use XFree to free the XExtensionVersion structure.
STRUCTURES
This request returns an XExtensionVersion structure.
typedef struct {
int present;
short major_version;
short minor_version;
} XExtensionVersion;
03/09/2013 XGETEXTENSIONVERSION(3)
I am having a major issue with our server...
In our web application, we have a feature by which a client can upload a file and submit the page...
This was a feature which was working fine till recently...we changed the server and I guess some settings changed.
Now it keeps throwing an apache... (3 Replies)
Hi,
look at the following code:
The client after estabilishing a connection with the server does the following:
if ((peter = fopen(argv, "r")) == NULL){
printf("errore\n");
exit(0);
}
... (11 Replies)
Hi,
I would like to know if there are any particular sites I can go to in order to findout what programs are supported in UNix OS version 11i. PArticularly if Hp Basic is supported in this new Unix version 11i.
Thank you very much. (1 Reply)
I have a file name version.properties with the following data:
major.version=14
minor.version=234
I'm trying to write a grep expression to only put "14" to stdout. The following is not working.
grep "major.version=(+)" version.properties
What am I doing wrong? (6 Replies)
char name;
printf ("Welcome to the server \n");
printf ("Enter user name: \n");
scanf ("%c", &name);
how can client send name to server:what should be the code?
int send ( int sid , const char ∗buffer Ptr , int len , int f l a g )
how can client receive ack from... (1 Reply)