dev_DatabaseName()
Retrieve the name of the current device database.
#include "device.h" LMessage dev_DatabaseName ( void );
dev_DatabaseName() retrieves the name the currently loaded device database.
If successful, dev_DatabaseName() returns a non-NULL
pointer to the
name of the device database. Otherwise, it returns a non-NULL
pointer to an invalid
name string. It never returns NULL
.
if (dev_Initialize(NULL) < 0) { LOG("Failure loading default database."); } else { LOG("Device database '%s' loaded", dev_DatabaseName()); }