This category relates to user preferences, which may be found in the database
configuration file README, in the environment or
on the command-line on operating systems where those make sense,
or in a per-user configuration file.
Currently, most of the preferences and configuration code exists only as a set of place-holders.
A program should do the following on startup:
Finally, on exit, the program should call LQT_CloseDatabase; this is optional if you only used read-only access to the database.
Currently, most of the preferences and configuration code exists only as a set of place-holders.
A program should do the following on startup:
- Set the global variable progname to a useful value;
- Call LQT_InitFromArgv to obtain an Options object; this may result in argv being changed.
- Handle any program-specific command-line options;
- Call LQT_OpenDatabase with the Options object obtained earlier, and also with O_RDONLY or O_RDWR as appropriate.
Finally, on exit, the program should call LQT_CloseDatabase; this is optional if you only used read-only access to the database.