File SolidSyslogTimeQualitySd.h¶
FileList > Core > Interface > SolidSyslogTimeQualitySd.h
Go to the source code of this file
A StructuredData source for the RFC 5424 §7.1 "timeQuality" SD-ELEMENT (IANA SD-ID, so no enterprise-number suffix), emitted on every message the owning logger formats. More...
#include "ExternC.h"#include "SolidSyslogTimeQuality.h"
Public Functions¶
| Type | Name |
|---|---|
| struct SolidSyslogStructuredData * | SolidSyslogTimeQualitySd_Create (SolidSyslogTimeQualityFunction getTimeQuality) Create a "timeQuality" SD source (RFC 5424 §7.1), querying getTimeQuality once per message to build the element. |
| void | SolidSyslogTimeQualitySd_Destroy (struct SolidSyslogStructuredData * base) Release the SD's pool slot. |
Detailed Description¶
The getTimeQuality callback is queried once per message; the element always carries tzKnown and isSynced (emitted as 0/1), and adds syncAccuracy only when the callback supplies a value other than SOLIDSYSLOG_SYNC_ACCURACY_OMIT.
Public Functions Documentation¶
function SolidSyslogTimeQualitySd_Create¶
Create a "timeQuality" SD source (RFC 5424 §7.1), querying getTimeQuality once per message to build the element.
struct SolidSyslogStructuredData * SolidSyslogTimeQualitySd_Create (
SolidSyslogTimeQualityFunction getTimeQuality
)
Never returns NULL: a NULL callback or an exhausted pool reports via SolidSyslog_Error and returns the shared no-op NullSd, so callers need not null-check the result.
function SolidSyslogTimeQualitySd_Destroy¶
Release the SD's pool slot.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogTimeQualitySd.h