mco_fh_mod_init

Initialize the module.

Prototype

 
    mco_fh_ret mco_fh_mod_init(/*IN*/ mco_fh_module_h h, 
                    /*IN*/ mco_fh_db_h db)
 

Arguments

h The module handle
db The database handle

Description

This function initializes the module. At this stage the module can connect to the services, retrieve metadata, dictionaries, etc.

Return Codes

MCO_FH_OK Module successfully initialized
MCO_FH_E_INVALID_CONFIG The configuration supplied by the user in the "config" subsection of the handler module's configuration is invalid
MCO_FH_E_CONN_FAILURE The network connection has failed
MCO_FH_E_SYSTEM_ERROR A system error (e.g. I/O error) has occurred
MCO_FH_E_BAD_HANDLE The module handle is invalid

Example

 
    mco_fh_ret mco_fh_mod_init(mco_fh_module_h h, mco_fh_db_h db)
    {
        return reinterpret_cast<TestFeedHandler *>(h)->init(db);
    }