XrmGetFileDatabase() XrmGetFileDatabase()
Name
XrmGetFileDatabase - retrieve a database from a file.
Synopsis
XrmDatabase XrmGetFileDatabase(filename)
char *filename;
Arguments
filename Specifies the resource database filename.
Returns
The database.
Description
XrmGetFileDatabase() opens the specified file, creates a new resource database, and loads the database with the data read in from the file.
The return value of the function is as a pointer to the created database.
The specified file must contain lines in the format accepted by XrmPutLineResource(). The file is parsed in the current locale and the
database is created in the current locale. If XrmGetFileDatabase() cannot open the specified file, it returns NULL.
For more information, see Volume One, Chapter 13, Managing User Preferences.
Structures
XrmDatabase is a pointer to an opaque data type.
See Also
XrmDestroyDatabase(), XrmGetResource(), XrmGetStringDatabase(), XrmInitialize(), XrmMergeDatabases(), XrmParseCommand(), XrmPutFile-
Database(), XrmPutLineResource(), XrmPutResource(), XrmPutStringResource(), XrmQGetResource(), XrmQGetSearchList(), XrmQGetSearchRe-
source(), XrmQPutResource(), XrmQPutStringResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), XrmString-
ToQuark(), XrmUniqueQuark().
Xlib - Resource Manager XrmGetFileDatabase()