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/runtime/msg.c
rsRetVal jsonFind(struct json_object * jroot, msgPropDescr_t * pProp,
                      struct json_object * *jsonres)
    {
        uchar* leaf;
        struct json_object* parent;
        struct json_object* field;
        DEFiRet;

        if (jroot == NULL)
        {
            field = NULL;
            goto finalize_it;
        }

        if (!strcmp((char*)pProp->name, "!"))
        {
            field = jroot;
        }
        else
        {
            leaf = jsonPathGetLeaf(pProp->name, pProp->nameLen);
            CHKiRet(jsonPathFindParent(jroot, pProp->name, leaf, &parent, 0));
            if (jsonVarExtract(parent, (char*)leaf, &field) == FALSE)
                field = NULL;
        }
        *jsonres = field;

    finalize_it:
        RETiRet;
    }
/* find a JSON structure element (field or container doesn't matter).  */
find a JSON structure element (field or container doesn't matter).
find a JSON structure element ( field or container doesn ' t matter ) .
rsRetVal jsonFind(struct json_object * jroot, msgPropDescr_t * pProp,
                      struct json_object * *jsonres)
    {
        uchar* leaf;
        struct json_object* parent;
        struct json_object* field;
        DEFiRet;
        if (jroot == NULL)
        {
            field = NULL;
            goto finalize_it;
        }
        if (!strcmp((char*)pProp->name, "!"))
        {
            field = jroot;
        }
        else
        {
            leaf = jsonPathGetLeaf(pProp->name, pProp->nameLen);
            CHKiRet(jsonPathFindParent(jroot, pProp->name, leaf, &parent, 0));
            if (jsonVarExtract(parent, (char*)leaf, &field) == FALSE)
                field = NULL;
        }
        *jsonres = field;
    finalize_it:
        RETiRet;
    }
rsRetVal jsonFind ( struct json_object * jroot , msgPropDescr_t * pProp , struct json_object * * jsonres ) { uchar * leaf ; struct json_object * parent ; struct json_object * field ; DEFiRet ; if ( jroot == NULL ) { field = NULL ; goto finalize_it ; } if ( ! strcmp ( ( char * ) pProp -> name , " " ) ) { field = jroot ; } else { leaf = jsonPathGetLeaf ( pProp -> name , pProp -> nameLen ) ; CHKiRet ( jsonPathFindParent ( jroot , pProp -> name , leaf , & parent , 0 ) ) ; if ( jsonVarExtract ( parent , ( char * ) leaf , & field ) == FALSE ) field = NULL ; } * jsonres = field ; finalize_it : RETiRet ; }
find a JSON structure element (field or container doesn't matter).
find a JSON structure element ( field or container doesn ' t matter ) .