Global: uses typed enums

This commit is contained in:
Carter Li
2026-07-10 16:35:46 +08:00
committed by 李通洲
parent f8908b9a36
commit 873454191f
32 changed files with 45 additions and 61 deletions
+1 -2
View File
@@ -2,11 +2,10 @@
#include "common/option.h"
typedef enum FF_A_PACKED FFDNSShowType {
typedef enum FFDNSShowType: uint8_t {
FF_DNS_TYPE_IPV4_BIT = 1,
FF_DNS_TYPE_IPV6_BIT = 2,
FF_DNS_TYPE_BOTH = FF_DNS_TYPE_IPV4_BIT | FF_DNS_TYPE_IPV6_BIT,
FF_DNS_TYPE_FORCE_UNSIGNED = UINT8_MAX,
} FFDNSShowType;
typedef struct FFDNSOptions {