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 : #include "lwip/opt.h"
6 :
7 : #if LWIP_SOCKET
8 :
9 : #include <string.h>
10 :
11 : #include "SolidSyslogError.h"
12 : #include "SolidSyslogLwipSocketAddressErrors.h"
13 : #include "SolidSyslogLwipSocketAddressPrivate.h"
14 :
15 : const struct SolidSyslogErrorSource SolidSyslogLwipSocketAddressErrorSource = {
16 : "LwipSocketAddress",
17 : SolidSyslogAddressErrors_Name
18 : };
19 :
20 : struct SolidSyslogAddress;
21 :
22 101 : void SolidSyslogLwipSocketAddress_Initialise(struct SolidSyslogAddress* base)
23 : {
24 101 : struct SolidSyslogLwipSocketAddress* self = (struct SolidSyslogLwipSocketAddress*) base;
25 101 : (void) memset(&self->Sockaddr, 0, sizeof(self->Sockaddr));
26 101 : }
27 :
28 101 : void SolidSyslogLwipSocketAddress_Cleanup(struct SolidSyslogAddress* base)
29 : {
30 : (void) base;
31 101 : }
32 :
33 : #else
34 :
35 : /* ISO C forbids an empty translation unit. */
36 : typedef int LwipSocketAddress_EmptyTranslationUnit;
37 :
38 : #endif /* LWIP_SOCKET */
|