[include] provide invalid 0 entry for enum values

Some enum values have no valid 0 entry producing warnings when
initializing a struct with { 0 }. Add an *_Invalid entry to these to
explicitly mark that value invalid and define it for use.
This commit is contained in:
Armin Novak
2026-02-10 14:39:30 +01:00
parent 6bf8793589
commit 8c0b07ab78
2 changed files with 4 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ typedef struct
typedef enum
{
SNDIN_VERSION_Invalid = 0x00000000,
SNDIN_VERSION_Version_1 = 0x00000001,
SNDIN_VERSION_Version_2 = 0x00000002,
} SNDIN_VERSION_Version;

View File

@@ -39,6 +39,7 @@ extern "C"
typedef enum
{
CAM_MSG_ID_Invalid = 0x00,
CAM_MSG_ID_SuccessResponse = 0x01,
CAM_MSG_ID_ErrorResponse = 0x02,
CAM_MSG_ID_SelectVersionRequest = 0x03,
@@ -107,6 +108,7 @@ typedef struct
typedef enum
{
CAM_ERROR_CODE_None = 0x00000000,
CAM_ERROR_CODE_UnexpectedError = 0x00000001,
CAM_ERROR_CODE_InvalidMessage = 0x00000002,
CAM_ERROR_CODE_NotInitialized = 0x00000003,
@@ -187,6 +189,7 @@ typedef enum
typedef enum
{
AM_MEDIA_TYPE_DESCRIPTION_FLAG_Invalid = 0x00,
CAM_MEDIA_TYPE_DESCRIPTION_FLAG_DecodingRequired = 0x01,
CAM_MEDIA_TYPE_DESCRIPTION_FLAG_BottomUpImage = 0x02,
} CAM_MEDIA_TYPE_DESCRIPTION_FLAGS;