Branch data 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 "SolidSyslogLwipRawMarshalPrivate.h"
6 : :
7 : : #include <stddef.h>
8 : :
9 : 2 : static void Marshal_NullMarshal(SolidSyslogLwipRawCallback callback, void* context)
10 : : {
11 : 2 : callback(context);
12 : 2 : }
13 : :
14 : : static SolidSyslogLwipRawMarshalFunction currentMarshal = Marshal_NullMarshal;
15 : :
16 : 274 : void SolidSyslogLwipRaw_SetMarshal(SolidSyslogLwipRawMarshalFunction marshal)
17 : : {
18 [ + + ]: 274 : if (marshal == NULL)
19 : : {
20 : 138 : currentMarshal = Marshal_NullMarshal;
21 : : }
22 : : else
23 : : {
24 : 136 : currentMarshal = marshal;
25 : : }
26 : 274 : }
27 : :
28 : 240 : void SolidSyslogLwipRaw_Marshal(SolidSyslogLwipRawCallback callback, void* context)
29 : : {
30 : 240 : currentMarshal(callback, context);
31 : 240 : }
|