Manual Pages for Linux CentOS command on man XkbOpenDisplay
MyWebUniversity

Manual Pages for Linux CentOS command on man XkbOpenDisplay

XkbOpenDisplay(3) XKB FUNCTIONS XkbOpenDisplay(3)

NAME

XkbOpenDisplay - Checks for a compatible version of the Xkb extension in both the library and the server, and initializes the extension for use. SYNOPSIS Display XkbOpenDisplay (char *displayname, int *eventrtrn, int *errorrtrn, int *majorinout, int *minorinout, int *rea‐ sonrtrn); ARGUMENTS displayname hardware display name, which determines the display and communi‐ cations domain to be used eventrtrn backfilled with the extension base event code errorrtrn backfilled with the extension base error code majorinout compile time lib major version in, server major version out minorinout compile time lib min version in, server minor version out reasonrtrn backfilled with a status code DESCRIPTION As a convenience, you can use the function XkbOpenDisplay to perform these three tasks at once: open a connection to an X server, check for a compatible version of the Xkb extension in both the library and the server, and initialize the extension for use. XkbOpenDisplay is a convenience function that opens an X display con‐ nection and initializes the X keyboard extension. In all cases, upon return reasonrtrn contains a status value indicating success or the type of failure. If majorinout and minorinout are not NULL, XkbOpenDisplay first calls XkbLibraryVersion to determine whether the client library is compatible, passing it the values pointed to by majorinout and minorinout. If the library is incompatible, XkbOpenDisplay backfills majorinout and minorinout with the major and minor extension versions of the library being used and returns NULL. If the library is compatible, XkbOpenDisplay next calls XOpenDisplay with the displayname. If this fails, the function returns NULL. If successful, XkbOpenDisplay calls XkbQueryExtension and backfills the major and minor Xkb server extension version numbers in majorinout and minorinout. If the server extension version is not compatible with the library extension version or if the server exten‐ sion is not present, XkbOpenDisplay closes the display and returns NULL. When successful, the function returns the display connection. The possible values for reasonrtrn are: · XkbODBadLibraryVersion indicates XkbLibraryVersion returned False. · XkbODConnectionRefused indicates the display could not be opened. · XkbODBadServerVersion indicates the library and the server have incompatible extension versions. · XkbODNonXkbServer indicates the extension is not present in the X server. · XkbODSuccess indicates that the function succeeded. RETURN VALUES NULL The XkbOpenDisplay function returns NULL if the library is incompatible. The XkbOpenDisplay function returns NULL if the call to XOpenDisplay with the displayname fails. The XkbOpenDisplay function returns NULL and closes the display if the server extension version is not compatible with the library extension version or if the server exten‐ sion is not present. DIAGNOSTICS BadAccess The Xkb extension has not been properly initialized SEE ALSO XkbLibraryVersion(3), XkbQueryExtension(3), XOpenDisplay(3) X Version 11 libX11 1.6.5 XkbOpenDisplay(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™