Stack Initialization

Initialize Service Database

lgo_InitializeServiceDatabase()

Set the database of service definitions.

Syntax
#include "laygo.h"

LResult lgo_InitializeServiceDatabase
    (
        LFileName    fileName
    );
fileNamename of service database file
Description

lgo_InitializeServiceDatabase() sets the database of service definitions for use by lgo_Open() and lgo_Attach(). If the file name is NULL, the default file is used.

The use of lgo_InitializeServiceDatabase() is optional. If it is not called, lgo_Open() will attempt to initialize the database 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_UninitializeServiceDatabase()

Example
if (lgo_InitializeServiceDatabase(NULL) < 0)
{
    return (FAILURE);
}