XrmMergeDatabases()XrmMergeDatabases()NameXrmMergeDatabases – merge the contents of one database into another.
Synopsis
void XrmMergeDatabases(source_db, target_db)
XrmDatabase source_db, *target_db;
Arguments
source_db Specifies the resource database to be merged into the exist‐
ing database.
target_db Specifies a pointer to the resource database into which the
source_db database will be merged.
DescriptionXrmMergeDatabases() merges source_db into target_db. This procedure is
used to combine databases, for example, an application specific data‐
base of defaults and a database of user preferences. If the same spec‐
ifier is used for an entry in both databases, the entry in the
source_db will replace the entry in the target_db (that is, it over‐
rides
target_db). If target_db is NULL, XrmMergeDatabases() simply stores
source_db in it. Otherwise, source_db is destroyed by the merge, but
the database pointed to by target_db is not destroyed. The database
entries are merged without changing values or types, regardless of the
locales of the databases. The locale of the target database is not
modified.
For more information, see Volume One, Chapter 13, Managing User Prefer‐
ences.
Structures
XrmDatabase is a pointer to an opaque data type.
See AlsoXrmDestroyDatabase(), XrmGetFileDatabase(), XrmGetResource(), XrmGet‐
StringDatabase(), XrmInitialize(), XrmParseCommand(), XrmPutFile‐
Database(), XrmPutLineResource(), XrmPutResource(), XrmPutStringRe‐
source(), XrmQGetResource(), XrmQGetSearchList(), XrmQGetSearchRe‐
source(), XrmQPutResource(), XrmQPutStringResource(), XrmQuark‐
ToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), Xrm‐
StringToQuark(), XrmUniqueQuark().
Xlib - Resource Manager XrmMergeDatabases()