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

NAME

6       XrmMergeDatabases, XrmCombineDatabase, XrmCombineFileDatabase - merge
7       resource databases
8

SYNTAX

10       void XrmMergeDatabases(XrmDatabase source_db, XrmDatabase *target_db);
11
12       void XrmCombineDatabase(XrmDatabase source_db, XrmDatabase *target_db,
13              Bool override);
14
15       Status XrmCombineFileDatabase(char *filename, XrmDatabase *target_db,
16              Bool override);
17

ARGUMENTS

19       source_db Specifies the resource database that is to be merged into the
20                 target database.
21
22       target_db Specifies the resource database into which the source data‐
23                 base is to be merged.
24
25       filename  Specifies the resource database file name.
26
27       override  Specifies whether source entries override target ones.
28

DESCRIPTION

30       Calling the XrmMergeDatabases function is equivalent to calling the
31       XrmCombineDatabase function with an override argument of True.
32
33       The XrmCombineDatabase function merges the contents of one database
34       into another.  If the same specifier is used for an entry in both data‐
35       bases, the entry in the source_db will replace the entry in the tar‐
36       get_db if override is True; otherwise, the entry in source_db is dis‐
37       carded.  If target_db contains NULL, XrmCombineDatabase simply stores
38       source_db in it.  Otherwise, source_db is destroyed by the merge, but
39       the database pointed to by target_db is not destroyed.  The database
40       entries are merged without changing values or types, regardless of the
41       locales of the databases.  The locale of the target database is not
42       modified.
43
44       The XrmCombineFileDatabase function merges the contents of a resource
45       file into a database.  If the same specifier is used for an entry in
46       both the file and the database, the entry in the file will replace the
47       entry in the database if override is True; otherwise, the entry in the
48       file is discarded.  The file is parsed in the current locale.  If the
49       file cannot be read, a zero status is returned; otherwise, a nonzero
50       status is returned.  If target_db contains NULL, XrmCombineFileDatabase
51       creates and returns a new database to it.  Otherwise, the database
52       pointed to by target_db is not destroyed by the merge.  The database
53       entries are merged without changing values or types, regardless of the
54       locale of the database.  The locale of the target database is not modi‐
55       fied.
56

SEE ALSO

58       XrmGetResource(3), XrmInitialize(3), XrmPutResource(3)
59       Xlib - C Language X Interface
60
61
62
63X Version 11                     libX11 1.3.4             XrmMergeDatabases(3)
Impressum