Return the number of bytes required to load the database registry.
unsigned int mco_current_registry_size( void );
| void | No arguments |
This function returns the number of bytes required to load the database registry at runtime.
| unsigned int | The current registry size n bytes |
Application snippet:
const char * dbname = "SimpleDb";
int main(int argc, char* argv[])
{
mco_db_h db;
MCO_RET rc;
mco_device_t dev;
mco_db_params_t db_params;
unsigned int reg_size;
...
if( (rc = mco_runtime_start()) != MCO_S_OK)
exit(-1);
reg_size = mco_current_registry_size();
rc = mco_db_open_dev( dbname, simpledb_get_dictionary(), &dev, 1, &db_params );
if ( MCO_S_OK != rc )
{
rc = mco_db_connect( dbname, &db );
...
}
}