XkbFreeGeomColors − Free geometry colors


void XkbFreeGeomColors

(XkbGeometryPtr geom, int first, int count, Bool



− geom

geometry in which colors should be freed

− first

first color to be freed

− count

number of colors to be freed

− free_all

True => all colors are freed


Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. Note that these functions merely allocate space for the new element(s), and it is up to you to fill in the values explicitly in your code. These allocation functions increase sz_* but never touch num_* (unless there is an allocation failure, in which case they reset both sz_* and num_* to zero). These functions return Success if they succeed, BadAlloc if they are not able to allocate space, or BadValue if a parameter is not as expected.

If free_all is True, all colors are freed regardless of the value of first or count. Otherwise, count colors are freed beginning with the one specified by first.



Unable to allocate storage


An argument is out of range

More Linux Commands

setcontext(2) - get or set the user context - Linux man page
setcontext.2 - In a System V-like environment, one has the two types mcontext_t and ucontext_t defined in <ucontext.h> and the four functions getcontext(), setc

splashy_config(1) - a user-mode, POSIX and LSB compliant, bo
Splashy displays an image and a progress bar at boot time. splashy_config is used to change Splashy configuration options. OPTIONS -h, --help Print helps and ex

perltie(1) - how to hide an object class in a simple variabl
Prior to release 5.0 of Perl, a programmer could use dbmopen() to connect an on-disk database in the standard Unix dbm(3x) format magically to a %HASH in their

vscanf(3) - input format conversion - Linux manual page.....
The scanf() family of functions scans input according to format as described below. This format may contain conversion specifications; the results from such con

systemd-loginctl(1) - Control the systemd login manager.....
loginctl may be used to introspect and control the state of the systemd(1) login manager systemd-logind.service(8). OPTIONS The following options are understood

gnu_dev_makedev(3) - manage a device number - Linux man page
A device ID consists of two parts: a major ID, identifying the class of the device, and a minor ID, identifying a specific instance of a device in that class. A

noecho(3ncurses) - curses input options - Linux manual page
Normally, the tty driver buffers typed characters until a newline or carriage return is typed. The cbreak routine disables line buffering and erase/kill charact

pcre_exec(3) - Perl-compatible regular expressions (ManPage)
This function matches a compiled regular expression against a given subject string, using a matching algorithm that is similar to Perls. It returns offsets to c

git-merge-index(1) - Run a merge for files needing merging
This looks up the <file>(s) in the index and, if there are any merge entries, passes the SHA-1 hash for those files as arguments 1, 2, 3 (empty argument if no f

libblkid(3) - block device identification library (ManPage)
The libblkid library is used to identify block devices (disks) as to their content (e.g. filesystem type) as well as extracting additional information such as f

Encode::Supported(3pm) - Encodings supported by Encode......
Encoding Names Encoding names are case insensitive. White space in names is ignored. In addition, an encoding may have aliases. Each encoding has one canonical

reset_shell_mode_sp(3ncurses) - curses screen-pointer extens
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

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