Stack Initialization

Uninitialize Service Database

lgo_UninitializeServiceDatabase()

Unset the database of service definitions.

Syntax
#include "laygo.h"

LResult lgo_UninitializeServiceDatabase
    (
        void
    );
Description

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.

Return Values

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:

See Also

lgo_InitializeServiceDatabase()

Example
if (newDb != NULL)
{
    lgo_UninitializeServiceDatabase();

    if (lgo_InitializeServiceDatabase(newDb) < 0)
    {
        return (FAILURE);
    }
}