Files
systemd/src/basic/af-list.h
T
Mike Yuan 180341e732 basic,shared: mark eligible functions with _pure_/_const_
Following the recent witch hunt done to static inline functions
I figure we should at least give the compiler some more hint
on optimizations.
2025-05-26 20:26:58 +02:00

15 lines
334 B
C

/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "forward.h"
const char* af_to_name(int id) _const_;
int af_from_name(const char *name) _pure_;
const char* af_to_name_short(int id) _const_;
const char* af_to_ipv4_ipv6(int id) _const_;
int af_from_ipv4_ipv6(const char *af) _pure_;
int af_max(void) _const_;