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 MsgSetStructuredData(smsg_t* const pMsg, const char* pszStrucData)
    {
        DEFiRet;
        ISOBJ_TYPE_assert(pMsg, msg);
        free(pMsg->pszStrucData);
        CHKmalloc(pMsg->pszStrucData = (uchar*)strdup(pszStrucData));
        pMsg->lenStrucData = strlen(pszStrucData);
    finalize_it:
        RETiRet;
    }
/* rgerhards 2004-11-24: set STRUCTURED DATA in msg object
     */
rgerhards 2004-11-24: set STRUCTURED DATA in msg object
rgerhards 2004 - 11 - 24 : set STRUCTURED DATA in msg object
rsRetVal MsgSetStructuredData(smsg_t* const pMsg, const char* pszStrucData)
    {
        DEFiRet;
        ISOBJ_TYPE_assert(pMsg, msg);
        free(pMsg->pszStrucData);
        CHKmalloc(pMsg->pszStrucData = (uchar*)strdup(pszStrucData));
        pMsg->lenStrucData = strlen(pszStrucData);
    finalize_it:
        RETiRet;
    }
rsRetVal MsgSetStructuredData ( smsg_t * const pMsg , const char * pszStrucData ) { DEFiRet ; ISOBJ_TYPE_assert ( pMsg , msg ) ; free ( pMsg -> pszStrucData ) ; CHKmalloc ( pMsg -> pszStrucData = ( uchar * ) strdup ( pszStrucData ) ) ; pMsg -> lenStrucData = strlen ( pszStrucData ) ; finalize_it : RETiRet ; }
rgerhards 2004-11-24: set STRUCTURED DATA in msg object
rgerhards 2004 - 11 - 24 : set STRUCTURED DATA in msg object