1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00

net: Add typedef for AF enum

This commit is contained in:
Jens Wetterich 2022-02-10 18:40:59 +01:00
parent c423148bbc
commit fd5b1a68b5

View File

@ -24,7 +24,10 @@
extern "C" { extern "C" {
#endif #endif
enum { /**
* @brief UNIX address family definitions
*/
typedef enum {
AF_UNSPEC = 0, /**< unspecified address family */ AF_UNSPEC = 0, /**< unspecified address family */
#define AF_UNSPEC AF_UNSPEC /**< unspecified address family (as macro) */ #define AF_UNSPEC AF_UNSPEC /**< unspecified address family (as macro) */
AF_UNIX, /**< local to host (pipes, portals) address family. */ AF_UNIX, /**< local to host (pipes, portals) address family. */
@ -39,7 +42,7 @@ enum {
AF_NUMOF, /**< maximum number of address families on this system */ 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_NUMOF AF_NUMOF /**< maximum number of address families on this system (as macro) */
#define AF_MAX AF_NUMOF /**< alias for @ref AF_NUMOF */ #define AF_MAX AF_NUMOF /**< alias for @ref AF_NUMOF */
}; } unix_af_t;
#ifdef __cplusplus #ifdef __cplusplus
} }