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
+2 -3
View File
@@ -2,15 +2,14 @@
#include "common/option.h"
typedef enum FF_A_PACKED FFDisplayCompactType {
typedef enum FFDisplayCompactType: uint8_t {
FF_DISPLAY_COMPACT_TYPE_NONE = 0,
FF_DISPLAY_COMPACT_TYPE_ORIGINAL_BIT = 1 << 0,
FF_DISPLAY_COMPACT_TYPE_SCALED_BIT = 1 << 1,
FF_DISPLAY_COMPACT_TYPE_REFRESH_RATE_BIT = 1 << 2,
FF_DISPLAY_COMPACT_TYPE_UNSIGNED = UINT8_MAX,
} FFDisplayCompactType;
typedef enum FF_A_PACKED FFDisplayOrder {
typedef enum FFDisplayOrder: uint8_t {
FF_DISPLAY_ORDER_NONE,
FF_DISPLAY_ORDER_ASC,
FF_DISPLAY_ORDER_DESC,