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 msgConstructWithTime(smsg_t** ppThis, const struct syslogTime* stTime,
                              const time_t ttGenTime)
{
    DEFiRet;

    CHKiRet(msgBaseConstruct(ppThis));
    (*ppThis)->ttGenTime = ttGenTime;
    memcpy(&(*ppThis)->tRcvdAt, stTime, sizeof(struct syslogTime));
    memcpy(&(*ppThis)->tTIMESTAMP, stTime, sizeof(struct syslogTime));

finalize_it:
    RETiRet;
}
/* "Constructor" for a msg "object". Returns a pointer to
 * the new object or NULL if no such object could be allocated.
 * An object constructed via this function should only be destroyed
 * via "msgDestruct()". This constructor does not query system time
 * itself but rather uses a user-supplied value. This enables the caller
 * to do some tricks to save processing time (done, for example, in the
 * udp input).
 * rgerhards, 2008-10-06
 */
"Constructor" for a msg "object". Returns a pointer to
the new object or NULL if no such object could be allocated.
An object constructed via this function should only be destroyed
via "msgDestruct()". This constructor does not query system time
itself but rather uses a user-supplied value. This enables the caller
to do some tricks to save processing time (done, for example, in the
udp input).
" Constructor " for a msg " object " . Returns a pointer to the new object or NULL if no such object could be allocated . An object constructed via this function should only be destroyed via " msgDestruct () " . This constructor does not query system time itself but rather uses a user - supplied value . This enables the caller to do some tricks to save processing time ( done for example in the udp input ) .
rsRetVal msgConstructWithTime(smsg_t** ppThis, const struct syslogTime* stTime,
                              const time_t ttGenTime)
{
    DEFiRet;
    CHKiRet(msgBaseConstruct(ppThis));
    (*ppThis)->ttGenTime = ttGenTime;
    memcpy(&(*ppThis)->tRcvdAt, stTime, sizeof(struct syslogTime));
    memcpy(&(*ppThis)->tTIMESTAMP, stTime, sizeof(struct syslogTime));
finalize_it:
    RETiRet;
}
rsRetVal msgConstructWithTime ( smsg_t * * ppThis , const struct syslogTime * stTime , const time_t ttGenTime ) { DEFiRet ; CHKiRet ( msgBaseConstruct ( ppThis ) ) ; ( * ppThis ) -> ttGenTime = ttGenTime ; memcpy ( & ( * ppThis ) -> tRcvdAt , stTime , sizeof ( struct syslogTime ) ) ; memcpy ( & ( * ppThis ) -> tTIMESTAMP , stTime , sizeof ( struct syslogTime ) ) ; finalize_it : RETiRet ; }
"Constructor" for a msg "object".
" Constructor " for a msg " object " .