mco_get_runtime_info

Reports the version and enabled features of the database runtime.

Prototype

    MCO_RET mco_get_runtime_info(    /*OUT*/ mco_runtime_info_t * pinfo)

Arguments

pinfo
Pointer to a mco_runtime_info_t structure.

Description

This function reports the version and enabled features of the eXtremeDB database runtime.

Return Codes

MCO_S_OK
The function returned successfully.

Example

    Application snippet:

    int main(int argc, char* argv[])
    {
        ...
        mco_runtime_info_t info;

        mco_get_runtime_info( &info);

        if ( info.mco_shm_supported == 0 )
            start_mem = (void*)malloc( SEGSZ );
        else
            start_mem = MAP_ADDRESS;
    }

Files

Header file:
mco.h
Source file:
mcodb.c
Library:
libmcolib.a