src/basic/af-list.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "basic-forward.h" |
| 5 | |
| 6 | const char* af_to_name(int id) _const_; |
| 7 | int af_from_name(const char *name) _pure_; |
| 8 | |
| 9 | const char* af_to_name_short(int id) _const_; |
| 10 | |
| 11 | const char* af_to_ipv4_ipv6(int id) _const_; |
| 12 | int af_from_ipv4_ipv6(const char *af) _pure_; |
| 13 | |
| 14 | int af_max(void) _const_; |