SolidSyslog coverage report
Current view: top level - Core/Source - SolidSyslogUdpSenderPrivate.h (source / functions) Coverage Total Hit
Test: SolidSyslog Lines: 100.0 % 3 3
Test Date: 2026-11-12 23:14:35 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /* SPDX-FileCopyrightText: Copyright 2026 Cozens Software Solutions Limited
       2              :  * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0 OR LicenseRef-COSOSO-Commercial
       3              :  */
       4              : 
       5              : #ifndef SOLIDSYSLOGUDPSENDERPRIVATE_H
       6              : #define SOLIDSYSLOGUDPSENDERPRIVATE_H
       7              : 
       8              : #include <stdbool.h>
       9              : #include <stdint.h>
      10              : 
      11              : #include "SolidSyslogError.h"
      12              : #include "SolidSyslogPrival.h"
      13              : #include "SolidSyslogSenderDefinition.h"
      14              : #include "SolidSyslogUdpSender.h"
      15              : #include "SolidSyslogUdpSenderErrors.h"
      16              : 
      17              : struct SolidSyslogUdpSender
      18              : {
      19              :     struct SolidSyslogSender Base;
      20              :     struct SolidSyslogUdpSenderConfig Config;
      21              :     bool Connected;
      22              :     bool DeliveryHealthy;
      23              :     bool RecordTooLargeReported;
      24              :     uint32_t LastEndpointVersion;
      25              : };
      26              : 
      27              : void SolidSyslogUdpSender_Initialise(struct SolidSyslogSender* base, const struct SolidSyslogUdpSenderConfig* config);
      28              : void SolidSyslogUdpSender_Cleanup(struct SolidSyslogSender* base);
      29              : 
      30           34 : static inline void UdpSender_Report(
      31              :     enum SolidSyslogSeverity severity,
      32              :     uint16_t category,
      33              :     enum SolidSyslogUdpSenderErrors code
      34              : )
      35              : {
      36           34 :     SolidSyslog_Error(severity, &SolidSyslogUdpSenderErrorSource, category, (int32_t) code);
      37           34 : }
      38              : 
      39              : #endif /* SOLIDSYSLOGUDPSENDERPRIVATE_H */
        

Generated by: LCOV version 2.0-1