Skip to content

File SolidSyslogHeaderField.h

FileList > Core > Interface > SolidSyslogHeaderField.h

The value sink a callback writes an RFC 5424 header field (HOSTNAME / APP-NAME / PROCID) into; the sink owns the charset and the field width.

  • #include "SolidSyslogExternC.h"
  • #include <stddef.h>
  • #include <stdint.h>

Public Functions Documentation

SolidSyslogHeaderField_PrintUsAscii

Appends up to maxLength bytes ofsource (stopping at a NUL terminator), substituting any byte outside printable US-ASCII ('!'..'~'), space included, with the library's substitute character.

void SolidSyslogHeaderField_PrintUsAscii (
    struct SolidSyslogHeaderField * field,
    const char * source,
    size_t maxLength
) 

Further bounded by the field width the sink was created with, shared across all appends to this field.


SolidSyslogHeaderField_Uint32

Appends the decimal digits of value (always printable US-ASCII), bounded by the same field width.

void SolidSyslogHeaderField_Uint32 (
    struct SolidSyslogHeaderField * field,
    uint32_t value
) 



The documentation for this class was generated from the following file Core/Interface/SolidSyslogHeaderField.h