| // WARNING: This file is machine generated by fidlc. |
| |
| #include <lib/fidl/internal.h> |
| |
| |
| extern const struct FidlCodedXUnion test_name_UnionTable; |
| extern const struct FidlCodedXUnion test_name_UnionNullableRefTable; |
| extern const struct FidlCodedTable test_name_TableTable; |
| extern const struct FidlCodedStruct test_name_StructTable; |
| extern const struct FidlCodedEnum test_name_MyEnumTable; |
| extern const struct FidlCodedBits test_name_MyBitsTable; |
| |
| |
| extern const struct FidlCodedStruct test_name_InterfaceMethodRequestTable; |
| const struct FidlCodedStruct test_name_InterfaceMethodRequestTable = {.tag=kFidlTypeStruct, .elements=NULL, .element_count=0u, .size=16u, .name="test.name/InterfaceMethodRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_InterfaceOnEventEventTable; |
| const struct FidlCodedStruct test_name_InterfaceOnEventEventTable = {.tag=kFidlTypeStruct, .elements=NULL, .element_count=0u, .size=16u, .name="test.name/InterfaceOnEventEvent"}; |
| |
| |
| static const struct FidlXUnionField Fields15test_name_Union[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kInt32Table)} |
| }; |
| const struct FidlCodedXUnion test_name_UnionTable = {.tag=kFidlTypeXUnion, .field_count=1u, .fields=Fields15test_name_Union, .nullable=kFidlNullability_Nonnullable, .name="test.name/Union", .strictness=kFidlStrictness_Strict, .is_resource=kFidlIsResource_NotResource}; |
| static const struct FidlXUnionField Fields26test_name_UnionNullableRef[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kInt32Table)} |
| }; |
| const struct FidlCodedXUnion test_name_UnionNullableRefTable = {.tag=kFidlTypeXUnion, .field_count=1u, .fields=Fields26test_name_UnionNullableRef, .nullable=kFidlNullability_Nullable, .name="test.name/Union", .strictness=kFidlStrictness_Strict, .is_resource=kFidlIsResource_NotResource}; |
| static const struct FidlTableField Fields15test_name_Table[] = { |
| /*FidlTableField*/{.type=(fidl_type_t*)(&fidl_internal_kInt32Table), .ordinal=1u} |
| }; |
| const struct FidlCodedTable test_name_TableTable = {.tag=kFidlTypeTable, .fields=Fields15test_name_Table, .field_count=1u, .name="test.name/Table"}; |
| |
| const struct FidlCodedStruct test_name_StructTable = {.tag=kFidlTypeStruct, .elements=NULL, .element_count=0u, .size=4u, .name="test.name/Struct"}; |
| |
| static bool EnumValidatorFor_test_name_MyEnum(uint64_t v) { |
| switch (v) { |
| case 1ul: |
| case 2ul: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| const struct FidlCodedEnum test_name_MyEnumTable = {.tag=kFidlTypeEnum, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .validate=&EnumValidatorFor_test_name_MyEnum, .name="test.name/MyEnum"}; |
| |
| const struct FidlCodedBits test_name_MyBitsTable = {.tag=kFidlTypeBits, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .strictness=kFidlStrictness_Strict, .mask=3ul, .name="test.name/MyBits"}; |
| |