XGetAtomNames(3)


HOME

XInternAtom

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
DIAGNOSTICS
SEE ALSO

NAME

XInternAtom, XInternAtoms, XGetAtomName, XGetAtomNames − create or return atom names

SYNTAX

Atom XInternAtom(Display *display, char *atom_name, Bool only_if_exists);

Status XInternAtoms(Display *display, char **names, int count, Bool only_if_exists, Atom *atoms_return);

char *XGetAtomName(Display *display, Atom atom);

Status XGetAtomNames(Display *display, Atom *atoms, int count, char **names_return);

ARGUMENTS

atom

Specifies the atom for the property name you want returned.

atoms

Specifies the array of atoms.

atom_name

Specifies the name associated with the atom you want returned.

atoms_return

Returns the atoms.

count

Specifies the number of atom names in the array.

count

Specifies the number of atoms in the array.

display

Specifies the connection to the X server.

names

Specifies the array of atom names.

names_return

Returns the atom names.

only_if_exists

Specifies a Boolean value that indicates whether the atom must be created.

DESCRIPTION

The XInternAtom function returns the atom identifier associated with the specified atom_name string. If only_if_exists is False, the atom is created if it does not exist. Therefore, XInternAtom can return None. If the atom name is not in the Host Portable Character Encoding, the result is implementation-dependent. Uppercase and lowercase matter; the strings ‘‘thing’’, ‘‘Thing’’, and ‘‘thinG’’ all designate different atoms. The atom will remain defined even after the client’s connection closes. It will become undefined only when the last connection to the X server closes.

XInternAtom can generate BadAlloc and BadValue errors.

The XInternAtoms function returns the atom identifiers associated with the specified names. The atoms are stored in the atoms_return array supplied by the caller. Calling this function is equivalent to calling XInternAtom for each of the names in turn with the specified value of only_if_exists, but this function minimizes the number of round-trip protocol exchanges between the client and the X server.

This function returns a nonzero status if atoms are returned for all of the names; otherwise, it returns zero.

XInternAtoms can generate BadAlloc and BadValue errors.

The XGetAtomName function returns the name associated with the specified atom. If the data returned by the server is in the Latin Portable Character Encoding, then the returned string is in the Host Portable Character Encoding. Otherwise, the result is implementation-dependent. To free the resulting string, call XFree.

XGetAtomName can generate a BadAtom error.

The XGetAtomNames function returns the names associated with the specified atoms. The names are stored in the names_return array supplied by the caller. Calling this function is equivalent to calling XGetAtomName for each of the atoms in turn, but this function minimizes the number of round-trip protocol exchanges between the client and the X server.

This function returns a nonzero status if names are returned for all of the atoms; otherwise, it returns zero.

XGetAtomNames can generate a BadAtom error.

DIAGNOSTICS

BadAlloc

The server failed to allocate the requested resource or server memory.

BadAtom

A value for an Atom argument does not name a defined Atom.

BadValue

Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument’s type is accepted. Any argument defined as a set of alternatives can generate this error.

SEE ALSO

XFree(3), XGetWindowProperty(3)
Xlib − C Language X Interface



More Linux Commands

manpages/xconsole.1.html
xconsole(1) - monitor system console messages with X........
The xconsole program displays messages which are usually sent to /dev/console. OPTIONS Xconsole accepts all of the standard X Toolkit command line options along

manpages/warnings::register.3pm.html
warnings::register(3pm) - warnings import function (ManPage)
Creates a warnings category with the same name as the current package. See warnings and perllexwarn for more information on this modules usage. warnings::regist

manpages/grpconv.8.html
grpconv(8) - convert to shadow group - Linux manual page....
Since /etc/gshadow is not supported by this system, grpconv does nothing except printing an error message. FILES /etc/group - group account information SEE ALSO

manpages/gnutls_cipher_tag.3.html
gnutls_cipher_tag(3) - API function - Linux manual page.....
This function operates on authenticated encryption with associated data (AEAD) ciphers and will return the output tag. RETURNS Zero or a negative error code on

manpages/pppoe-start.8.html
pppoe-start(8) Shell script to bring up a PPPoE link........
pppoe-start is a shell script which starts the Roaring Penguin user-space PPPoE client. If you omit config_file, the default file /etc/ppp/pppoe.conf is used. I

manpages/curscr.3ncurses.html
curscr(3ncurses) - curses global variables - Linux man page
This page summarizes variables provided by the curses library. A more complete description is given in the curses(3X) manual page. Depending on the configuratio

manpages/SDL_CondWaitTimeout.3.html
SDL_CondWaitTimeout(3) - Wait on a condition variable, with
Wait on the condition variable cond for, at most, ms milliseconds. mut is unlocked so it must be locked when the function is called. Returns SDL_MUTEX_TIMEDOUT

manpages/idnconv.1.html
idnconv(1) - codeset converter for named.conf and zone maste
idnconv is a codeset converter for named configuration files and zone master files. idnconv performs codeset conversion specified either by the command-line arg

manpages/getauxval.3.html
getauxval(3) retrieve a value from the auxiliary vector.....
The getauxval() function retrieves values from the auxiliary vector, a mechanism that the kernels ELF binary loader uses to pass certain information to user spa

manpages/pwck.8.html
pwck(8) - manual page for pwck (pwdutils) 2.5.92 (Man Page)
pwck - check integrity of password files -P path Search passwd, shadow and group file in path -q, --quiet Dont print warnings, only errors -r, --read-only Run i

manpages/ooffice.1.html
ooffice(1) - LibreOffice office suite - Linux manual page...
LibreOffice (LO for short) is a multi-platform office productivity suite. It was derived from OpenOffice.org 3.3 Beta on September 28, 2010. libreoffice is a sh

manpages/Benchmark.3pm.html
Benchmark(3pm) - benchmark running times of Perl code.......
The Benchmark module encapsulates a number of routines to help you figure out how long it takes to execute some code. timethis - run a chunk of code several tim





We can't live, work or learn in freedom unless the software we use is free.