XrmPutResource(3)


HOME

XrmPutResource

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

XrmPutResource, XrmQPutResource, XrmPutStringResource, XrmQPutStringResource, XrmPutLineResource − store database resources

SYNTAX

void XrmPutResource(XrmDatabase *database, char *specifier, char *type, XrmValue *value);

void XrmQPutResource(XrmDatabase *database, XrmBindingList bindings, XrmQuarkList quarks, XrmRepresentation type, XrmValue *value);

void XrmPutStringResource(XrmDatabase *database, char *specifier, char *value);

void XrmQPutStringResource(XrmDatabase *database, XrmBindingList bindings, XrmQuarkList quarks, char *value);

void XrmPutLineResource(XrmDatabase *database, char *line);

ARGUMENTS

bindings

Specifies a list of bindings.

database

Specifies the resource database.

line

Specifies the resource name and value pair as a single string.

quarks

Specifies the complete or partial name or the class list of the resource.

specifier

Specifies a complete or partial specification of the resource.

type

Specifies the type of the resource.

value

Specifies the value of the resource, which is specified as a string.

DESCRIPTION

If database contains NULL, XrmPutResource creates a new database and returns a pointer to it. XrmPutResource is a convenience function that calls XrmStringToBindingQuarkList followed by:

XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value)

If the specifier and type are not in the Host Portable Character Encoding, the result is implementation-dependent. The value is stored in the database without modification.

If database contains NULL, XrmQPutResource creates a new database and returns a pointer to it. If a resource entry with the identical bindings and quarks already exists in the database, the previous type and value are replaced by the new specified type and value. The value is stored in the database without modification.

If database contains NULL, XrmPutStringResource creates a new database and returns a pointer to it. XrmPutStringResource adds a resource with the specified value to the specified database. XrmPutStringResource is a convenience function that first calls XrmStringToBindingQuarkList on the specifier and then calls XrmQPutResource, using a ‘‘String’’ representation type. If the specifier is not in the Host Portable Character Encoding, the result is implementation-dependent. The value is stored in the database without modification.

If database contains NULL, XrmQPutStringResource creates a new database and returns a pointer to it. XrmQPutStringResource is a convenience routine that constructs an XrmValue for the value string (by calling strlen to compute the size) and then calls XrmQPutResource, using a ‘‘String’’ representation type. The value is stored in the database without modification.

If database contains NULL, XrmPutLineResource creates a new database and returns a pointer to it. XrmPutLineResource adds a single resource entry to the specified database. The line should be in valid ResourceLine format (see section 15.1) terminated by a newline or null character; the database that results from using a string with incorrect syntax is implementation-dependent. The string is parsed in the locale of the database. If the ResourceName is not in the Host Portable Character Encoding, the result is implementation-dependent. Note that comment lines are not stored.

SEE ALSO

XrmGetResource(3), XrmInitialize(3), XrmMergeDatabases(3), XrmUniqueQuark(3)
Xlib − C Language X Interface



More Linux Commands

manpages/gnutls_pkcs11_obj_get_info.3.html
gnutls_pkcs11_obj_get_info(3) - API function (Man Page).....
This function will return information about the PKCS11 certificate such as the label, id as well as token information where the key is stored. When output is te

manpages/XtIsComposite.3.html
XtIsComposite(3) - obtain and verify a widget's class.......
The XtClass function returns a pointer to the widgets class structure. The XtSuperclass function returns a pointer to the widgets superclass class structure. Th

manpages/winbind_krb5_locator.7.html
winbind_krb5_locator(7) - A plugin for MIT and Heimdal Kerbe
This plugin is part of the samba(7) suite. winbind_krb5_locator is a plugin that permits MIT and Heimdal Kerberos libraries to detect Kerberos Servers (for the

manpages/pow10f.3.html
pow10f(3) - base-10 power functions - Linux manual page.....
The pow10() function returns the value of 10 raised to the power x. VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING TO This is a GNU

manpages/fputs_unlocked.3.html
fputs_unlocked(3) - nonlocking stdio functions (Man Page)...
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse

manpages/FontCacheQueryVersion.3.html
FontCacheQueryVersion(3) - X-TrueType font cache extension c
FontCache is an extension that is used by X-TrueType to cache informations about fonts. FontCacheQueryExtension returns True if the FontCache extension is avail

manpages/XTestFakeButtonEvent.3.html
XTestFakeButtonEvent(3) - XTest extension functions.........
This extension is a minimal set of client and server extensions required to completely test the X11 server with no user intervention. This extension is not inte

manpages/argz_add.3.html
argz_add(3) - functions to handle an argz list (Man Page)...
These functions are glibc-specific. An argz vector is a pointer to a character buffer together with a length. The intended interpretation of the character buffe

manpages/mvgetch.3ncurses.html
mvgetch(3ncurses) - get (or push back) characters from curse
The getch, wgetch, mvgetch and mvwgetch, routines read a character from the window. In no-delay mode, if no input is waiting, the value ERR is returned. In dela

manpages/wtouchln.3ncurses.html
wtouchln(3ncurses) - curses refresh control routines........
The touchwin and touchline routines throw away all optimization information about which parts of the window have been touched, by pretending that the entire win

manpages/Tk_DrawTextLayout.3.html
Tk_DrawTextLayout(3) - routines to measure and display singl
These routines are for measuring and displaying single-font, multi-line, justified text. To measure and display simple single-font, single-line strings, refer t

manpages/foreach.n.html
foreach(n) - Iterate over all elements in one or more lists
The foreach command implements a loop where the loop variable(s) take on values from one or more lists. In the simplest case there is one loop variable, varname





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