mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user