NAME
XrmMergeDatabases − merge the contents of one database into another.
Synopsis
void XrmMergeDatabases(source_db, target_db)
XrmDatabase source_db, *target_db;
Arguments
source_dbSpecifies the resource database to be merged into the existing database.
target_dbSpecifies a pointer to the resource database into which the source_db database will be merged.
Description
XrmMergeDatabases() merges source_db into target_db. This procedure is used to combine databases, for example, an application specific database of defaults and a database of user preferences. If the same specifier 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 overrides 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 11, Managing User Preferences.
Structures
XrmDatabase is a pointer to an opaque data type.
See Also
XrmDestroyDatabase(), XrmGetFileDatabase(), XrmGetResource(), XrmGetStringDatabase(), XrmInitialize(), XrmParseCommand(), XrmPutFileDatabase(), XrmPutLineResource(), XrmPutResource(), XrmPutStringResource(), XrmQGetResource(), XrmQGetSearchList(), XrmQGetSearchResource(), XrmQPutResource(), XrmQPutStringResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), XrmStringToQuark(), XrmUniqueQuark().
Copyright O’Reilly & Assoc. —