Oma_Ot_Writer_Template_Remove()
摘要
移除与 writer 关联的模板。
语法
Oma_Ot_Writer_Template_Remove (ot_writer_ptr, template_ptr, template_remove_options)
| 参数 | 类型 | 说明 |
|---|---|---|
ot_writer_ptr |
OmaT_Ot_Writer * |
所关注的 OT writer。 |
template_ptr |
OmaT_Ot_Template * |
要移除的模板。 |
template_remove_options |
int |
移除选项。 |
返回类型
PrgC_Compcode
如果成功移除该模板,返回 PrgC_Compcode_Success;否则返回 PrgC_Compcode_Failure。
头文件
oma_ot.h
详情
template_remove_options 必须是以下符号常量按位 OR 的某种组合:
OMAC_OT_TEMPLATE_REMOVE_OPT_NONE——移除模板,但保留其关联的表(如有),这些表将带有私有模板OMAC_OT_TEMPLATE_REMOVE_OPT_IF_NO_TABLES——仅当当前没有表引用该模板时才移除OMAC_OT_TEMPLATE_REMOVE_OPT_REMOVE_TABLES——移除该模板及所有引用它的表