Source code for the RDM core13 example. More...
#include <stdio.h>
#include <string.h>
#include "print_error.h"
#include "rdm.h"
#include "core13_db_structs.h"
#include "core13_db_cat.h"
Functions | |
RDM_RETCODE | openEmptyDatabase (RDM_TFS hTFS, RDM_DB *pDB1, RDM_DB *pDB2) |
Initialize the RDM runtime library for use in the core13 example. More... | |
RDM_RETCODE | display_offices (RDM_DB hDB) |
Display the contents of the database. More... | |
int | main (void) |
Main function for core13 example. More... | |
Source code for the RDM core13 example.
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.
[in] | hDB | Database handle to be used |
int main | ( | void | ) |
Main function for core13 example.
The function initializes the RDM environment and runs the create, read operations.
RDM_RETCODE openEmptyDatabase | ( | RDM_TFS | hTFS, |
RDM_DB * | pDB1, | ||
RDM_DB * | pDB2 | ||
) |
Initialize the RDM runtime library for use in the core13 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 "core13" database in exclusive mode. Exclusve mode does not require database locks or transactions.
[in] | hTFS | Allocated TFS handle |
[out] | pDB1 | Pointer to the RDM database handle |
[out] | pDB2 | Pointer to the RDM database handle |