| // WARNING: This file is machine generated by fidlc. |
| |
| #include <lib/fidl/internal.h> |
| |
| |
| __LOCAL extern const struct FidlCodedBits zx_rightsTable; |
| __LOCAL extern const struct FidlCodedEnum zx_obj_typeTable; |
| __LOCAL extern const struct FidlCodedEnum test_consts_EnumTypeTable; |
| __LOCAL extern const struct FidlCodedBits test_consts_BitsTypeTable; |
| |
| |
| |
| static bool EnumValidatorFor_test_consts_EnumType(uint64_t v) { |
| switch (v) { |
| case 1ul: |
| case 2ul: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| const struct FidlCodedEnum test_consts_EnumTypeTable = {.tag=kFidlTypeEnum, .underlying_type=kFidlCodedPrimitiveSubtype_Int32, .strictness=kFidlStrictness_Strict, .validate=&EnumValidatorFor_test_consts_EnumType, .name="test.consts/EnumType"}; |
| |
| const struct FidlCodedBits test_consts_BitsTypeTable = {.tag=kFidlTypeBits, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .strictness=kFidlStrictness_Strict, .mask=3ul, .name="test.consts/BitsType"}; |
| |