mco_fh_mod_fill_metadata

Request that the module provide metadata.

Prototype

    mco_fh_ret mco_fh_mod_fill_metadata(/*IN*/ mco_fh_module_h h)

Arguments

h
The module handle.

Description

This function requests that the module provide metadata using the mco_fh_metadata_add() API call. If the module is unable to provide metadata, it should return MCO_FH_E_NOT_IMPLEMENTED.

Return Codes

MCO_FH_OK
Metadata successfully added.
MCO_FH_E_NOT_IMPLEMENTED
Force the Feed Handler application to call the module’s mco_fh_mod_get_field_info() function to retrieve the types of fields configured by the user.
MCO_FH_E_BAD_HANDLE
The module handle is invalid.

Example

    mco_fh_ret mco_fh_mod_fill_metadata(mco_fh_module_h h)
    {
        mco_fh_metadata_add(db, "Quote", "symbol", McoSql::tpString, 4, 0);
        mco_fh_metadata_add(db, "Quote", "exchangeCode", McoSql::tpInt4, 0, 0);
        mco_fh_metadata_add(db, "Quote", "bid", McoSql::tpReal4, 0, 0);
        mco_fh_metadata_add(db, "Quote", "ask", McoSql::tpReal4, 0, 0);
        mco_fh_metadata_add(db, "Quote", "isNBBO", McoSql::tpBool, 0, 0);
        return MCO_FH_OK;
    }