Initialize the module.
mco_fh_ret mco_fh_mod_init(/*IN*/ mco_fh_module_h h, /*IN*/ mco_fh_db_h db)
h | The module handle |
db | The database handle |
This function initializes the module. At this stage the module can connect to the services, retrieve metadata, dictionaries, etc.
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 |
mco_fh_ret mco_fh_mod_init(mco_fh_module_h h, mco_fh_db_h db) { return reinterpret_cast<TestFeedHandler *>(h)->init(db); }