| // WARNING: This file is machine generated by fidlc. |
| |
| #include <lib/fidl/internal.h> |
| |
| |
| __LOCAL extern const struct FidlCodedStruct test_someotherlibrary_ReferenceMeTable; |
| __LOCAL extern const struct FidlCodedEnum test_typealiases_obj_typeTable; |
| __LOCAL extern const struct FidlCodedStruct test_typealiases_ExampleOfUseOfAliasesTable; |
| |
| |
| static const struct FidlCodedString String4294967295nonnullableTable = {.tag=kFidlTypeString, .max_size=4294967295u, .nullable=kFidlNullability_Nonnullable}; |
| |
| static const struct FidlCodedVector Vector4294967295nonnullable27String4294967295nonnullableTable = {.tag=kFidlTypeVector, .element=(fidl_type_t*)(&String4294967295nonnullableTable), .max_count=4294967295u, .element_size_v2=16u, .nullable=kFidlNullability_Nonnullable, .element_memcpy_compatibility=kFidlMemcpyCompatibility_CannotMemcpy}; |
| |
| static const struct FidlCodedVector Vector9nonnullable27String4294967295nonnullableTable = {.tag=kFidlTypeVector, .element=(fidl_type_t*)(&String4294967295nonnullableTable), .max_count=9u, .element_size_v2=16u, .nullable=kFidlNullability_Nonnullable, .element_memcpy_compatibility=kFidlMemcpyCompatibility_CannotMemcpy}; |
| |
| static const struct FidlCodedVector Vector5nonnullable27String4294967295nonnullableTable = {.tag=kFidlTypeVector, .element=(fidl_type_t*)(&String4294967295nonnullableTable), .max_count=5u, .element_size_v2=16u, .nullable=kFidlNullability_Nonnullable, .element_memcpy_compatibility=kFidlMemcpyCompatibility_CannotMemcpy}; |
| |
| static const struct FidlCodedVector Vector5nonnullable33test_someotherlibrary_ReferenceMeTable = {.tag=kFidlTypeVector, .element=(fidl_type_t*)(&test_someotherlibrary_ReferenceMeTable), .max_count=5u, .element_size_v2=1u, .nullable=kFidlNullability_Nonnullable, .element_memcpy_compatibility=kFidlMemcpyCompatibility_CanMemcpy}; |
| |
| static const struct FidlCodedHandle Handlechannel2147483648nonnullableTable = {.tag=kFidlTypeHandle, .handle_subtype=ZX_OBJ_TYPE_CHANNEL, .handle_rights=2147483648u, .nullable=kFidlNullability_Nonnullable}; |
| |
| static const struct FidlCodedHandle Handlechannel2147483648nullableTable = {.tag=kFidlTypeHandle, .handle_subtype=ZX_OBJ_TYPE_CHANNEL, .handle_rights=2147483648u, .nullable=kFidlNullability_Nullable}; |
| |
| |
| static bool EnumValidatorFor_test_typealiases_obj_type(uint64_t v) { |
| switch (v) { |
| case 0ul: |
| case 4ul: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| const struct FidlCodedEnum test_typealiases_obj_typeTable = {.tag=kFidlTypeEnum, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .strictness=kFidlStrictness_Strict, .validate=&EnumValidatorFor_test_typealiases_obj_type, .name="test.typealiases/obj_type"}; |
| |
| static const struct FidlStructElement Fields38test_typealiases_ExampleOfUseOfAliases[] = { |
| /*FidlStructPadding*/{.padding=/*FidlStructPadding*/{.offset_v2=4u, .header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Padding32,.is_resource=kFidlIsResource_NotResource},.mask_32=4294967295u}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_NotResource},.offset_v2=8u, .field_type=(fidl_type_t*)(&Vector4294967295nonnullable27String4294967295nonnullableTable)}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_NotResource},.offset_v2=24u, .field_type=(fidl_type_t*)(&Vector9nonnullable27String4294967295nonnullableTable)}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_NotResource},.offset_v2=40u, .field_type=(fidl_type_t*)(&Vector5nonnullable27String4294967295nonnullableTable)}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_NotResource},.offset_v2=56u, .field_type=(fidl_type_t*)(&Vector5nonnullable33test_someotherlibrary_ReferenceMeTable)}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_Resource},.offset_v2=72u, .field_type=(fidl_type_t*)(&Handlechannel2147483648nonnullableTable)}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_Resource},.offset_v2=76u, .field_type=(fidl_type_t*)(&Handlechannel2147483648nonnullableTable)}}, |
| /*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_Resource},.offset_v2=80u, .field_type=(fidl_type_t*)(&Handlechannel2147483648nullableTable)}}, |
| /*FidlStructPadding*/{.padding=/*FidlStructPadding*/{.offset_v2=84u, .header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Padding32,.is_resource=kFidlIsResource_NotResource},.mask_32=4294967295u}} |
| }; |
| const struct FidlCodedStruct test_typealiases_ExampleOfUseOfAliasesTable = {.tag=kFidlTypeStruct, .contains_envelope=kFidlContainsEnvelope_DoesNotContainEnvelope, .is_empty=kFidlEmpty_IsNotEmpty, .elements=Fields38test_typealiases_ExampleOfUseOfAliases, .element_count=9u, .size_v2=88u, .name="test.typealiases/ExampleOfUseOfAliases"}; |
| |