Stack Initialization
lgo_UninitializeServiceDatabase()
Unset the database of service definitions.
#include "laygo.h"
LResult lgo_UninitializeServiceDatabase
(
void
);
lgo_UninitializeServiceDatabase() unsets the database of service definitions previously set by lgo_InitializeServiceDatabase(). If either lgo_Open() and lgo_Attach() is called after the service database has been uninitialized, the service database will be reinitialized using the default file name.
If successful, lgo_InitializeServiceDatabase() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
if (newDb != NULL)
{
lgo_UninitializeServiceDatabase();
if (lgo_InitializeServiceDatabase(newDb) < 0)
{
return (FAILURE);
}
}