dev_Initialize()
Initialize the library with the name of the device database.
#include "device.h" LResult dev_Initialize ( LFileName database );
database | name of device database file |
dev_Initialize() establishes the device database to use for subsequent calls to dev_New(). If this function is not called before calling dev_New(), the default database will be used.
If successful, dev_Initialize() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
if ((result = dev_Initialize("default.db")) < 0) { LOG("Initialization failure: ", dev_ErrorMessage(result)); exit(EXIT_FAILURE); }