1XrmPutResource(3) XLIB FUNCTIONS XrmPutResource(3)
2
3
4
6 XrmPutResource, XrmQPutResource, XrmPutStringResource, XrmQPutStringRe‐
7 source, XrmPutLineResource - store database resources
8
10 void XrmPutResource(XrmDatabase *database, char *specifier, char *type,
11 XrmValue *value);
12
13 void XrmQPutResource(XrmDatabase *database, XrmBindingList bindings,
14 XrmQuarkList quarks, XrmRepresentation type, XrmValue *value);
15
16 void XrmPutStringResource(XrmDatabase *database, char *specifier, char
17 *value);
18
19 void XrmQPutStringResource(XrmDatabase *database, XrmBindingList bind‐
20 ings, XrmQuarkList quarks, char *value);
21
22 void XrmPutLineResource(XrmDatabase *database, char *line);
23
25 bindings Specifies a list of bindings.
26
27 database Specifies the resource database.
28
29 line Specifies the resource name and value pair as a single
30 string.
31
32 quarks Specifies the complete or partial name or the class list of
33 the resource.
34
35 specifier Specifies a complete or partial specification of the
36 resource.
37
38 type Specifies the type of the resource.
39
40 value Specifies the value of the resource, which is specified as a
41 string.
42
44 If database contains NULL, XrmPutResource creates a new database and
45 returns a pointer to it. XrmPutResource is a convenience function that
46 calls XrmStringToBindingQuarkList followed by:
47
48 XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value)
49
50 If the specifier and type are not in the Host Portable Character Encod‐
51 ing, the result is implementation-dependent. The value is stored in
52 the database without modification.
53
54 If database contains NULL, XrmQPutResource creates a new database and
55 returns a pointer to it. If a resource entry with the identical bind‐
56 ings and quarks already exists in the database, the previous type and
57 value are replaced by the new specified type and value. The value is
58 stored in the database without modification.
59
60 If database contains NULL, XrmPutStringResource creates a new database
61 and returns a pointer to it. XrmPutStringResource adds a resource with
62 the specified value to the specified database. XrmPutStringResource is
63 a convenience function that first calls XrmStringToBindingQuarkList on
64 the specifier and then calls XrmQPutResource, using a ``String'' repre‐
65 sentation type. If the specifier is not in the Host Portable Character
66 Encoding, the result is implementation-dependent. The value is stored
67 in the database without modification.
68
69 If database contains NULL, XrmQPutStringResource creates a new database
70 and returns a pointer to it. XrmQPutStringResource is a convenience
71 routine that constructs an XrmValue for the value string (by calling
72 strlen to compute the size) and then calls XrmQPutResource, using a
73 ``String'' representation type. The value is stored in the database
74 without modification.
75
76 If database contains NULL, XrmPutLineResource creates a new database
77 and returns a pointer to it. XrmPutLineResource adds a single resource
78 entry to the specified database. The line should be in valid Resource‐
79 Line format (see section 15.1) terminated by a newline or null charac‐
80 ter; the database that results from using a string with incorrect syn‐
81 tax is implementation-dependent. The string is parsed in the locale of
82 the database. If the ResourceName is not in the Host Portable Charac‐
83 ter Encoding, the result is implementation-dependent. Note that com‐
84 ment lines are not stored.
85
87 XrmGetResource(3), XrmInitialize(3), XrmMergeDatabases(3), XrmUnique‐
88 Quark(3)
89 Xlib - C Language X Interface
90
91
92
93X Version 11 libX11 1.3.4 XrmPutResource(3)