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
void MsgGetStructuredData(smsg_t* const pM, uchar** pBuf, rs_size_t* len)
    {
        MsgLock(pM);
        if (pM->pszStrucData == NULL)
        {
            *pBuf = UCHAR_CONSTANT("-"), *len = 1;
        }
        else
        {
            *pBuf = pM->pszStrucData, *len = pM->lenStrucData;
        }
        MsgUnlock(pM);
    }
/* get the "STRUCTURED-DATA" as sz string, including length */
get the "STRUCTURED-DATA" as sz string, including length
get the " STRUCTURED - DATA " as sz string including length
void MsgGetStructuredData(smsg_t* const pM, uchar** pBuf, rs_size_t* len)
    {
        MsgLock(pM);
        if (pM->pszStrucData == NULL)
        {
            *pBuf = UCHAR_CONSTANT("-"), *len = 1;
        }
        else
        {
            *pBuf = pM->pszStrucData, *len = pM->lenStrucData;
        }
        MsgUnlock(pM);
    }
void MsgGetStructuredData ( smsg_t * const pM , uchar * * pBuf , rs_size_t * len ) { MsgLock ( pM ) ; if ( pM -> pszStrucData == NULL ) { * pBuf = UCHAR_CONSTANT ( " " ) , * len = 1 ; } else { * pBuf = pM -> pszStrucData , * len = pM -> lenStrucData ; } MsgUnlock ( pM ) ; }
get the "STRUCTURED-DATA" as sz string, including length
get the " STRUCTURED - DATA " as sz string including length