openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/template.c
static rsRetVal createListTpl(struct template* pTpl, struct cnfobj* o)
{
    struct objlst* lst;
    DEFiRet;

    dbgprintf("create template from subobjs\n");
    objlstPrint(o->subobjs);

    for (lst = o->subobjs; lst != NULL; lst = lst->next)
    {
        switch (lst->obj->objType)
        {
            case CNFOBJ_PROPERTY:
                CHKiRet(createPropertyTpe(pTpl, lst->obj));
                break;
            case CNFOBJ_CONSTANT:
                CHKiRet(createConstantTpe(pTpl, lst->obj));
                break;
            default:
                dbgprintf("program error: invalid object type %d "
                          "in createLstTpl\n",
                          lst->obj->objType);
                break;
        }
        nvlstChkUnused(lst->obj->nvlst);
    }
finalize_it:
    RETiRet;
}
/* create a template in list mode, is build from sub-objects */
create a template in list mode, is build from sub-objects
create a template in list mode is build from sub - objects
static rsRetVal createListTpl(struct template* pTpl, struct cnfobj* o)
{
    struct objlst* lst;
    DEFiRet;
    dbgprintf("create template from subobjs\n");
    objlstPrint(o->subobjs);
    for (lst = o->subobjs; lst != NULL; lst = lst->next)
    {
        switch (lst->obj->objType)
        {
            case CNFOBJ_PROPERTY:
                CHKiRet(createPropertyTpe(pTpl, lst->obj));
                break;
            case CNFOBJ_CONSTANT:
                CHKiRet(createConstantTpe(pTpl, lst->obj));
                break;
            default:
                dbgprintf("program error: invalid object type %d "
                          "in createLstTpl\n",
                          lst->obj->objType);
                break;
        }
        nvlstChkUnused(lst->obj->nvlst);
    }
finalize_it:
    RETiRet;
}
static rsRetVal createListTpl ( struct template * pTpl , struct cnfobj * o ) { struct objlst * lst ; DEFiRet ; dbgprintf ( " \n " ) ; objlstPrint ( o -> subobjs ) ; for ( lst = o -> subobjs ; lst != NULL ; lst = lst -> next ) { switch ( lst -> obj -> objType ) { case CNFOBJ_PROPERTY : CHKiRet ( createPropertyTpe ( pTpl , lst -> obj ) ) ; break ; case CNFOBJ_CONSTANT : CHKiRet ( createConstantTpe ( pTpl , lst -> obj ) ) ; break ; default : dbgprintf ( " " " \n " , lst -> obj -> objType ) ; break ; } nvlstChkUnused ( lst -> obj -> nvlst ) ; } finalize_it : RETiRet ; }
create a template in list mode, is build from sub-objects
create a template in list mode is build from sub - objects