From fd5b1a68b5b07ebb31b09fe0c07878ee9e88e9e7 Mon Sep 17 00:00:00 2001 From: Jens Wetterich Date: Thu, 10 Feb 2022 18:40:59 +0100 Subject: [PATCH] net: Add typedef for AF enum --- sys/include/net/af.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/include/net/af.h b/sys/include/net/af.h index a1fd0b566d..75610eaff3 100644 --- a/sys/include/net/af.h +++ b/sys/include/net/af.h @@ -24,7 +24,10 @@ extern "C" { #endif -enum { +/** + * @brief UNIX address family definitions + */ +typedef enum { AF_UNSPEC = 0, /**< unspecified address family */ #define AF_UNSPEC AF_UNSPEC /**< unspecified address family (as macro) */ AF_UNIX, /**< local to host (pipes, portals) address family. */ @@ -39,7 +42,7 @@ enum { AF_NUMOF, /**< maximum number of address families on this system */ #define AF_NUMOF AF_NUMOF /**< maximum number of address families on this system (as macro) */ #define AF_MAX AF_NUMOF /**< alias for @ref AF_NUMOF */ -}; +} unix_af_t; #ifdef __cplusplus }