Stack Initialization

Initialize Service Database


Set the database of service definitions.

#include "laygo.h"

LResult lgo_InitializeServiceDatabase
        LFileName    fileName
fileNamename of service database file

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


if (lgo_InitializeServiceDatabase(NULL) < 0)
    return (FAILURE);