Products Support Documentation Download
Functions
Core08.c File Reference

Source code for the RDM core08 example. More...

#include <stdio.h>
#include <string.h>
#include "print_error.h"
#include "rdm.h"
#include "core08_db_structs.h"
#include "core08_db_cat.h"

Functions

RDM_RETCODE openEmptyDatabase (RDM_TFS hTFS, RDM_DB *pDB, const char *dbName)
 Initialize the RDM runtime library for use in the core08 example. More...
 
RDM_RETCODE display_offices (RDM_DB hDB)
 Display the contents of the database. More...
 
int main (void)
 Main function for core08 example. More...
 

Detailed Description

Source code for the RDM core08 example.

Function Documentation

◆ display_offices()

RDM_RETCODE display_offices ( RDM_DB  hDB)

Display the contents of the database.

This function displays the contents of the database. Exclusve mode does not require database locks or transactions.

Returns
Returns RDM_RETCODE status code (sOKAY if successful)
Parameters
[in]hDB[in] Database handle to be used

◆ main()

int main ( void  )

Main function for core08 example.

The function initializes the RDM environment and runs the create, read operations.

Returns
Returns the RDM_RETCODE on exit.

◆ openEmptyDatabase()

RDM_RETCODE openEmptyDatabase ( RDM_TFS  hTFS,
RDM_DB *  pDB,
const char *  dbName 
)

Initialize the RDM runtime library for use in the core08 example.

This function initializes the RDM Transactional File Server (TFS) to use the EMBEDED TFS implementation. It also allocates a database handle and opens the "core08" database in exclusive mode. Exclusve mode does not require database locks or transactions.

Returns
Returns RDM_RETCODE status code (sOKAY if successful)
Parameters
[in]hTFS[in] TFS
[out]pDB[out] Pointer to the RDM database handle
[in]dbName[in] Database Name