tfs/rdmAllocTFS.c
{
RDM_RETCODE rc;
RDM_TFS tfs;
RDM_DB db;
/* Set the TFS type to 'embedded' */
rc = rdm_rdmAllocTFS (&tfs);
{
if (rc == sOKAY)
{
rc = rdm_tfsInitialize (tfs);
if (rc == sOKAY)
{
rc = rdm_tfsAllocDatabase (tfs, &db);
if (rc == sOKAY)
{
if (rc == sOKAY)
{
printf ("Database (%s) is open!\n", databaseName);
rc = rdm_dbFree (db);
}
}
}
}
rc = rdm_tfsFree (tfs);
}
return rc;
}
RDM_RETCODE rdm_dbOpen(RDM_DB db, const char *dbNameSpec, RDM_OPEN_MODE mode)
Open an existing RDM database using the specified database handle.
RDM_RETCODE rdm_tfsAllocDatabase(RDM_TFS tfs, RDM_DB *pDb)
Allocate memory for a new RDM db.
RDM_RETCODE rdm_tfsSetOptions(RDM_TFS tfs, const char *optString)
Set TFS options.