Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xrmmergedatabases(3) [hpux man page]

XrmMergeDatabases()													       XrmMergeDatabases()

Name
  XrmMergeDatabases - 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 existing database.

  target_db Specifies 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 13, Managing User Preferences.

Structures
  XrmDatabase is a pointer to an opaque data type.

See Also
  XrmDestroyDatabase(),  XrmGetFileDatabase(),	XrmGetResource(),  XrmGetStringDatabase(),  XrmInitialize(),  XrmParseCommand(),  XrmPutFile-
  Database(),	XrmPutLineResource(),  XrmPutResource(),  XrmPutStringResource(),  XrmQGetResource(),  XrmQGetSearchList(),  XrmQGetSearchRe-
  source(), XrmQPutResource(), XrmQPutStringResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), XrmString-
  ToQuark(), XrmUniqueQuark().

Xlib - Resource Manager 												       XrmMergeDatabases()

Check Out this Related Man Page

XrmMergeDatabases(3)						  XLIB FUNCTIONS					      XrmMergeDatabases(3)

NAME
XrmMergeDatabases, XrmCombineDatabase, XrmCombineFileDatabase - merge resource databases SYNTAX
void XrmMergeDatabases(XrmDatabase source_db, XrmDatabase *target_db); void XrmCombineDatabase(XrmDatabase source_db, XrmDatabase *target_db, Bool override); Status XrmCombineFileDatabase(char *filename, XrmDatabase *target_db, Bool override); ARGUMENTS
source_db Specifies the resource database that is to be merged into the target database. target_db Specifies the resource database into which the source database is to be merged. filename Specifies the resource database file name. override Specifies whether source entries override target ones. DESCRIPTION
Calling the XrmMergeDatabases function is equivalent to calling the XrmCombineDatabase function with an override argument of True. The XrmCombineDatabase function merges the contents of one database into another. If the same specifier is used for an entry in both data- bases, the entry in the source_db will replace the entry in the target_db if override is True; otherwise, the entry in source_db is dis- carded. If target_db contains NULL, XrmCombineDatabase 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. The XrmCombineFileDatabase function merges the contents of a resource file into a database. If the same specifier is used for an entry in both the file and the database, the entry in the file will replace the entry in the database if override is True; otherwise, the entry in the file is discarded. The file is parsed in the current locale. If the file cannot be read, a zero status is returned; otherwise, a nonzero status is returned. If target_db contains NULL, XrmCombineFileDatabase creates and returns a new database to it. Otherwise, the database pointed to by target_db is not destroyed by the merge. The database entries are merged without changing values or types, regard- less of the locale of the database. The locale of the target database is not modified. SEE ALSO
XrmGetResource(3), XrmInitialize(3), XrmPutResource(3) Xlib - C Language X Interface X Version 11 libX11 1.5.0 XrmMergeDatabases(3)
Man Page