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
uchar* propIDToName(propid_t propID)
{
    switch (propID)
    {
        case PROP_MSG:
            return UCHAR_CONSTANT("msg");
        case PROP_TIMESTAMP:
            return UCHAR_CONSTANT("timestamp");
        case PROP_HOSTNAME:
            return UCHAR_CONSTANT("hostname");
        case PROP_SYSLOGTAG:
            return UCHAR_CONSTANT("syslogtag");
        case PROP_RAWMSG:
            return UCHAR_CONSTANT("rawmsg");
        case PROP_RAWMSG_AFTER_PRI:
            return UCHAR_CONSTANT("rawmsg-after-pri");
        case PROP_INPUTNAME:
            return UCHAR_CONSTANT("inputname");
        case PROP_FROMHOST:
            return UCHAR_CONSTANT("fromhost");
        case PROP_FROMHOST_IP:
            return UCHAR_CONSTANT("fromhost-ip");
        case PROP_PRI:
            return UCHAR_CONSTANT("pri");
        case PROP_PRI_TEXT:
            return UCHAR_CONSTANT("pri-text");
        case PROP_IUT:
            return UCHAR_CONSTANT("iut");
        case PROP_SYSLOGFACILITY:
            return UCHAR_CONSTANT("syslogfacility");
        case PROP_SYSLOGFACILITY_TEXT:
            return UCHAR_CONSTANT("syslogfacility-text");
        case PROP_SYSLOGSEVERITY:
            return UCHAR_CONSTANT("syslogseverity");
        case PROP_SYSLOGSEVERITY_TEXT:
            return UCHAR_CONSTANT("syslogseverity-text");
        case PROP_TIMEGENERATED:
            return UCHAR_CONSTANT("timegenerated");
        case PROP_PROGRAMNAME:
            return UCHAR_CONSTANT("programname");
        case PROP_PROTOCOL_VERSION:
            return UCHAR_CONSTANT("protocol-version");
        case PROP_STRUCTURED_DATA:
            return UCHAR_CONSTANT("structured-data");
        case PROP_APP_NAME:
            return UCHAR_CONSTANT("app-name");
        case PROP_PROCID:
            return UCHAR_CONSTANT("procid");
        case PROP_MSGID:
            return UCHAR_CONSTANT("msgid");
        case PROP_JSONMESG:
            return UCHAR_CONSTANT("jsonmesg");
        case PROP_PARSESUCCESS:
            return UCHAR_CONSTANT("parsesuccess");
#ifdef USE_LIBUUID
        case PROP_UUID:
            return UCHAR_CONSTANT("uuid");
#endif
        case PROP_SYS_NOW:
            return UCHAR_CONSTANT("$NOW");
        case PROP_SYS_YEAR:
            return UCHAR_CONSTANT("$YEAR");
        case PROP_SYS_MONTH:
            return UCHAR_CONSTANT("$MONTH");
        case PROP_SYS_DAY:
            return UCHAR_CONSTANT("$DAY");
        case PROP_SYS_HOUR:
            return UCHAR_CONSTANT("$HOUR");
        case PROP_SYS_HHOUR:
            return UCHAR_CONSTANT("$HHOUR");
        case PROP_SYS_QHOUR:
            return UCHAR_CONSTANT("$QHOUR");
        case PROP_SYS_MINUTE:
            return UCHAR_CONSTANT("$MINUTE");
        case PROP_SYS_NOW_UTC:
            return UCHAR_CONSTANT("$NOW-UTC");
        case PROP_SYS_YEAR_UTC:
            return UCHAR_CONSTANT("$YEAR-UTC");
        case PROP_SYS_MONTH_UTC:
            return UCHAR_CONSTANT("$MONTH-UTC");
        case PROP_SYS_DAY_UTC:
            return UCHAR_CONSTANT("$DAY-UTC");
        case PROP_SYS_HOUR_UTC:
            return UCHAR_CONSTANT("$HOUR-UTC");
        case PROP_SYS_HHOUR_UTC:
            return UCHAR_CONSTANT("$HHOUR-UTC");
        case PROP_SYS_QHOUR_UTC:
            return UCHAR_CONSTANT("$QHOUR-UTC");
        case PROP_SYS_MINUTE_UTC:
            return UCHAR_CONSTANT("$MINUTE-UTC");
        case PROP_SYS_WDAY:
            return UCHAR_CONSTANT("$WDAY");
        case PROP_SYS_WDAY_UTC:
            return UCHAR_CONSTANT("$WDAY-UTC");
        case PROP_SYS_MYHOSTNAME:
            return UCHAR_CONSTANT("$MYHOSTNAME");
        case PROP_CEE_ALL_JSON:
            return UCHAR_CONSTANT("$!all-json");
        case PROP_CEE_ALL_JSON_PLAIN:
            return UCHAR_CONSTANT("$!all-json-plain");
        case PROP_SYS_BOM:
            return UCHAR_CONSTANT("$BOM");
        case PROP_SYS_UPTIME:
            return UCHAR_CONSTANT("$UPTIME");
        case PROP_CEE:
            return UCHAR_CONSTANT("*CEE-based property*");
        case PROP_LOCAL_VAR:
            return UCHAR_CONSTANT("*LOCAL_VARIABLE*");
        case PROP_GLOBAL_VAR:
            return UCHAR_CONSTANT("*GLOBAL_VARIABLE*");
        default:
            return UCHAR_CONSTANT("*invalid property id*");
    }
}
/* map a property ID to a name string (useful for displaying) */
map a property ID to a name string (useful for displaying)
map a property ID to a name string ( useful for displaying )
uchar* propIDToName(propid_t propID)
{
    switch (propID)
    {
        case PROP_MSG:
            return UCHAR_CONSTANT("msg");
        case PROP_TIMESTAMP:
            return UCHAR_CONSTANT("timestamp");
        case PROP_HOSTNAME:
            return UCHAR_CONSTANT("hostname");
        case PROP_SYSLOGTAG:
            return UCHAR_CONSTANT("syslogtag");
        case PROP_RAWMSG:
            return UCHAR_CONSTANT("rawmsg");
        case PROP_RAWMSG_AFTER_PRI:
            return UCHAR_CONSTANT("rawmsg-after-pri");
        case PROP_INPUTNAME:
            return UCHAR_CONSTANT("inputname");
        case PROP_FROMHOST:
            return UCHAR_CONSTANT("fromhost");
        case PROP_FROMHOST_IP:
            return UCHAR_CONSTANT("fromhost-ip");
        case PROP_PRI:
            return UCHAR_CONSTANT("pri");
        case PROP_PRI_TEXT:
            return UCHAR_CONSTANT("pri-text");
        case PROP_IUT:
            return UCHAR_CONSTANT("iut");
        case PROP_SYSLOGFACILITY:
            return UCHAR_CONSTANT("syslogfacility");
        case PROP_SYSLOGFACILITY_TEXT:
            return UCHAR_CONSTANT("syslogfacility-text");
        case PROP_SYSLOGSEVERITY:
            return UCHAR_CONSTANT("syslogseverity");
        case PROP_SYSLOGSEVERITY_TEXT:
            return UCHAR_CONSTANT("syslogseverity-text");
        case PROP_TIMEGENERATED:
            return UCHAR_CONSTANT("timegenerated");
        case PROP_PROGRAMNAME:
            return UCHAR_CONSTANT("programname");
        case PROP_PROTOCOL_VERSION:
            return UCHAR_CONSTANT("protocol-version");
        case PROP_STRUCTURED_DATA:
            return UCHAR_CONSTANT("structured-data");
        case PROP_APP_NAME:
            return UCHAR_CONSTANT("app-name");
        case PROP_PROCID:
            return UCHAR_CONSTANT("procid");
        case PROP_MSGID:
            return UCHAR_CONSTANT("msgid");
        case PROP_JSONMESG:
            return UCHAR_CONSTANT("jsonmesg");
        case PROP_PARSESUCCESS:
            return UCHAR_CONSTANT("parsesuccess");
#ifdef USE_LIBUUID
        case PROP_UUID:
            return UCHAR_CONSTANT("uuid");
#endif
        case PROP_SYS_NOW:
            return UCHAR_CONSTANT("$NOW");
        case PROP_SYS_YEAR:
            return UCHAR_CONSTANT("$YEAR");
        case PROP_SYS_MONTH:
            return UCHAR_CONSTANT("$MONTH");
        case PROP_SYS_DAY:
            return UCHAR_CONSTANT("$DAY");
        case PROP_SYS_HOUR:
            return UCHAR_CONSTANT("$HOUR");
        case PROP_SYS_HHOUR:
            return UCHAR_CONSTANT("$HHOUR");
        case PROP_SYS_QHOUR:
            return UCHAR_CONSTANT("$QHOUR");
        case PROP_SYS_MINUTE:
            return UCHAR_CONSTANT("$MINUTE");
        case PROP_SYS_NOW_UTC:
            return UCHAR_CONSTANT("$NOW-UTC");
        case PROP_SYS_YEAR_UTC:
            return UCHAR_CONSTANT("$YEAR-UTC");
        case PROP_SYS_MONTH_UTC:
            return UCHAR_CONSTANT("$MONTH-UTC");
        case PROP_SYS_DAY_UTC:
            return UCHAR_CONSTANT("$DAY-UTC");
        case PROP_SYS_HOUR_UTC:
            return UCHAR_CONSTANT("$HOUR-UTC");
        case PROP_SYS_HHOUR_UTC:
            return UCHAR_CONSTANT("$HHOUR-UTC");
        case PROP_SYS_QHOUR_UTC:
            return UCHAR_CONSTANT("$QHOUR-UTC");
        case PROP_SYS_MINUTE_UTC:
            return UCHAR_CONSTANT("$MINUTE-UTC");
        case PROP_SYS_WDAY:
            return UCHAR_CONSTANT("$WDAY");
        case PROP_SYS_WDAY_UTC:
            return UCHAR_CONSTANT("$WDAY-UTC");
        case PROP_SYS_MYHOSTNAME:
            return UCHAR_CONSTANT("$MYHOSTNAME");
        case PROP_CEE_ALL_JSON:
            return UCHAR_CONSTANT("$!all-json");
        case PROP_CEE_ALL_JSON_PLAIN:
            return UCHAR_CONSTANT("$!all-json-plain");
        case PROP_SYS_BOM:
            return UCHAR_CONSTANT("$BOM");
        case PROP_SYS_UPTIME:
            return UCHAR_CONSTANT("$UPTIME");
        case PROP_CEE:
            return UCHAR_CONSTANT("*CEE-based property*");
        case PROP_LOCAL_VAR:
            return UCHAR_CONSTANT("*LOCAL_VARIABLE*");
        case PROP_GLOBAL_VAR:
            return UCHAR_CONSTANT("*GLOBAL_VARIABLE*");
        default:
            return UCHAR_CONSTANT("*invalid property id*");
    }
}
uchar * propIDToName ( propid_t propID ) { switch ( propID ) { case PROP_MSG : return UCHAR_CONSTANT ( " " ) ; case PROP_TIMESTAMP : return UCHAR_CONSTANT ( " " ) ; case PROP_HOSTNAME : return UCHAR_CONSTANT ( " " ) ; case PROP_SYSLOGTAG : return UCHAR_CONSTANT ( " " ) ; case PROP_RAWMSG : return UCHAR_CONSTANT ( " " ) ; case PROP_RAWMSG_AFTER_PRI : return UCHAR_CONSTANT ( " " ) ; case PROP_INPUTNAME : return UCHAR_CONSTANT ( " " ) ; case PROP_FROMHOST : return UCHAR_CONSTANT ( " " ) ; case PROP_FROMHOST_IP : return UCHAR_CONSTANT ( " " ) ; case PROP_PRI : return UCHAR_CONSTANT ( " " ) ; case PROP_PRI_TEXT : return UCHAR_CONSTANT ( " " ) ; case PROP_IUT : return UCHAR_CONSTANT ( " " ) ; case PROP_SYSLOGFACILITY : return UCHAR_CONSTANT ( " " ) ; case PROP_SYSLOGFACILITY_TEXT : return UCHAR_CONSTANT ( " " ) ; case PROP_SYSLOGSEVERITY : return UCHAR_CONSTANT ( " " ) ; case PROP_SYSLOGSEVERITY_TEXT : return UCHAR_CONSTANT ( " " ) ; case PROP_TIMEGENERATED : return UCHAR_CONSTANT ( " " ) ; case PROP_PROGRAMNAME : return UCHAR_CONSTANT ( " " ) ; case PROP_PROTOCOL_VERSION : return UCHAR_CONSTANT ( " " ) ; case PROP_STRUCTURED_DATA : return UCHAR_CONSTANT ( " " ) ; case PROP_APP_NAME : return UCHAR_CONSTANT ( " " ) ; case PROP_PROCID : return UCHAR_CONSTANT ( " " ) ; case PROP_MSGID : return UCHAR_CONSTANT ( " " ) ; case PROP_JSONMESG : return UCHAR_CONSTANT ( " " ) ; case PROP_PARSESUCCESS : return UCHAR_CONSTANT ( " " ) ; #ifdef USE_LIBUUID case PROP_UUID : return UCHAR_CONSTANT ( " " ) ; #endif case PROP_SYS_NOW : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_YEAR : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_MONTH : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_DAY : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_HOUR : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_HHOUR : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_QHOUR : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_MINUTE : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_NOW_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_YEAR_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_MONTH_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_DAY_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_HOUR_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_HHOUR_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_QHOUR_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_MINUTE_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_WDAY : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_WDAY_UTC : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_MYHOSTNAME : return UCHAR_CONSTANT ( " " ) ; case PROP_CEE_ALL_JSON : return UCHAR_CONSTANT ( " " ) ; case PROP_CEE_ALL_JSON_PLAIN : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_BOM : return UCHAR_CONSTANT ( " " ) ; case PROP_SYS_UPTIME : return UCHAR_CONSTANT ( " " ) ; case PROP_CEE : return UCHAR_CONSTANT ( " " ) ; case PROP_LOCAL_VAR : return UCHAR_CONSTANT ( " " ) ; case PROP_GLOBAL_VAR : return UCHAR_CONSTANT ( " " ) ; default : return UCHAR_CONSTANT ( " " ) ; } }
map a property ID to a name string (useful for displaying)
map a property ID to a name string ( useful for displaying )