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 "SolidSyslogAddressErrors.h"
6 :
7 : #include <stdint.h>
8 :
9 : #include "SolidSyslogErrorName.h"
10 :
11 : /* Indexed by the enum, so no name can shift; a code without one is NULL. */
12 5 : const char* SolidSyslogAddressErrors_Name(int32_t detail)
13 : {
14 : static const char* const names[SOLIDSYSLOG_ADDRESS_ERROR_MAX] = {
15 : [SOLIDSYSLOG_ADDRESS_ERROR_POOL_EXHAUSTED] = "POOL_EXHAUSTED",
16 : [SOLIDSYSLOG_ADDRESS_ERROR_UNKNOWN_DESTROY] = "UNKNOWN_DESTROY",
17 : };
18 :
19 5 : return SolidSyslogErrorName_Lookup(names, (int32_t) SOLIDSYSLOG_ADDRESS_ERROR_MAX, detail);
20 : }
|