mco_fh_mod_version
从模块的配置部分添加一个数据源。
mco_fh_ret mco_fh_mod_add_data_source(
/*IN*/ mco_fh_module_h h,
/*IN*/ const char *type,
/*IN*/ const char *name
);
参数
h
mco_fh_module_h
模块句柄。
type
const char
数据源的类型。
name
const char
数据源的名称。
返回
MCO_FH_OK
成功添加数据源。
MCO_FH_E_INVALID_CONFIG
配置无效,例如数据源名称无效。
MCO_FH_E_BAD_HANDLE
模块句柄无效。
示例
mco_fh_ret mco_fh_mod_add_data_source(mco_fh_module_h h, const char *type, const char *name)
{
return reinterpret_cast<TestFeedHandler *>(h)->addDataSource(type, name);
}