1XrmPutResource(3)               XLIB FUNCTIONS               XrmPutResource(3)
2
3
4

NAME

6       XrmPutResource, XrmQPutResource, XrmPutStringResource, XrmQPutStringRe‐
7       source, XrmPutLineResource - store database resources
8

SYNTAX

10       #include <X11/Xresource.h>
11
12       void XrmPutResource(XrmDatabase *database, char *specifier, char *type,
13              XrmValue *value);
14
15       void XrmQPutResource(XrmDatabase *database, XrmBindingList bindings,
16              XrmQuarkList quarks, XrmRepresentation type, XrmValue *value);
17
18       void XrmPutStringResource(XrmDatabase *database, char *specifier, char
19              *value);
20
21       void XrmQPutStringResource(XrmDatabase *database, XrmBindingList bind‐
22              ings, XrmQuarkList quarks, char *value);
23
24       void XrmPutLineResource(XrmDatabase *database, char *line);
25

ARGUMENTS

27       bindings  Specifies a list of bindings.
28
29       database  Specifies the resource database.
30
31       line      Specifies the resource name and value pair as a single
32                 string.
33
34       quarks    Specifies the complete or partial name or the class list of
35                 the resource.
36
37       specifier Specifies a complete or partial specification of the
38                 resource.
39
40       type      Specifies the type of the resource.
41
42       value     Specifies the value of the resource, which is specified as a
43                 string.
44

DESCRIPTION

46       If database contains NULL, XrmPutResource creates a new database and
47       returns a pointer to it.  XrmPutResource is a convenience function that
48       calls XrmStringToBindingQuarkList followed by:
49
50       XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value)
51
52       If the specifier and type are not in the Host Portable Character Encod‐
53       ing, the result is implementation-dependent.  The value is stored in
54       the database without modification.
55
56       If database contains NULL, XrmQPutResource creates a new database and
57       returns a pointer to it.  If a resource entry with the identical bind‐
58       ings and quarks already exists in the database, the previous type and
59       value are replaced by the new specified type and value.  The value is
60       stored in the database without modification.
61
62       If database contains NULL, XrmPutStringResource creates a new database
63       and returns a pointer to it.  XrmPutStringResource adds a resource with
64       the specified value to the specified database.  XrmPutStringResource is
65       a convenience function that first calls XrmStringToBindingQuarkList on
66       the specifier and then calls XrmQPutResource, using a ``String'' repre‐
67       sentation type.  If the specifier is not in the Host Portable Character
68       Encoding, the result is implementation-dependent.  The value is stored
69       in the database without modification.
70
71       If database contains NULL, XrmQPutStringResource creates a new database
72       and returns a pointer to it.  XrmQPutStringResource is a convenience
73       routine that constructs an XrmValue for the value string (by calling
74       strlen to compute the size) and then calls XrmQPutResource, using a
75       ``String'' representation type.  The value is stored in the database
76       without modification.
77
78       If database contains NULL, XrmPutLineResource creates a new database
79       and returns a pointer to it.  XrmPutLineResource adds a single resource
80       entry to the specified database.  The line should be in valid Resource‐
81       Line format (see section 15.1) terminated by a newline or null charac‐
82       ter; the database that results from using a string with incorrect syn‐
83       tax is implementation-dependent.  The string is parsed in the locale of
84       the database.  If the ResourceName is not in the Host Portable Charac‐
85       ter Encoding, the result is implementation-dependent.  Note that com‐
86       ment lines are not stored.
87

SEE ALSO

89       XrmGetResource(3), XrmInitialize(3), XrmMergeDatabases(3), XrmUnique‐
90       Quark(3)
91       Xlib - C Language X Interface
92
93
94
95X Version 11                     libX11 1.6.5                XrmPutResource(3)
Impressum