blob: 88c2c7d870b5bac68b8b116733c5dd49181104ce [file] [log] [blame]
// WARNING: This file is machine generated by fidlc.
#include <lib/fidl/internal.h>
__LOCAL extern const struct FidlCodedStruct test_exampleusing_EmptyTable;
__LOCAL extern const struct FidlCodedXUnion test_placementofattributes_ExampleXUnionTable;
__LOCAL extern const struct FidlCodedXUnion test_placementofattributes_ExampleXUnionNullableRefTable;
__LOCAL extern const struct FidlCodedXUnion test_placementofattributes_ExampleUnionTable;
__LOCAL extern const struct FidlCodedXUnion test_placementofattributes_ExampleUnionNullableRefTable;
__LOCAL extern const struct FidlCodedTable test_placementofattributes_ExampleTableTable;
__LOCAL extern const struct FidlCodedStruct test_placementofattributes_ExampleStructTable;
__LOCAL extern const struct FidlCodedStruct test_placementofattributes_ExampleProtocolMethodRequestTable;
__LOCAL extern const struct FidlCodedStruct test_placementofattributes_ExampleProtocolMethodRequestMessageTable;
__LOCAL extern const struct FidlCodedEnum test_placementofattributes_ExampleEnumTable;
__LOCAL extern const struct FidlCodedBits test_placementofattributes_ExampleBitsTable;
static const struct FidlXUnionField Fields40test_placementofattributes_ExampleXUnion[] = {
/*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)}
};
const struct FidlCodedXUnion test_placementofattributes_ExampleXUnionTable = {.tag=kFidlTypeXUnion, .field_count=1u, .fields=Fields40test_placementofattributes_ExampleXUnion, .nullable=kFidlNullability_Nonnullable, .name="test.placementofattributes/ExampleXUnion", .strictness=kFidlStrictness_Flexible, .is_resource=kFidlIsResource_NotResource};
static const struct FidlXUnionField Fields51test_placementofattributes_ExampleXUnionNullableRef[] = {
/*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)}
};
const struct FidlCodedXUnion test_placementofattributes_ExampleXUnionNullableRefTable = {.tag=kFidlTypeXUnion, .field_count=1u, .fields=Fields51test_placementofattributes_ExampleXUnionNullableRef, .nullable=kFidlNullability_Nullable, .name="test.placementofattributes/ExampleXUnion", .strictness=kFidlStrictness_Flexible, .is_resource=kFidlIsResource_NotResource};
static const struct FidlXUnionField Fields39test_placementofattributes_ExampleUnion[] = {
/*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)}
};
const struct FidlCodedXUnion test_placementofattributes_ExampleUnionTable = {.tag=kFidlTypeXUnion, .field_count=1u, .fields=Fields39test_placementofattributes_ExampleUnion, .nullable=kFidlNullability_Nonnullable, .name="test.placementofattributes/ExampleUnion", .strictness=kFidlStrictness_Strict, .is_resource=kFidlIsResource_NotResource};
static const struct FidlXUnionField Fields50test_placementofattributes_ExampleUnionNullableRef[] = {
/*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)}
};
const struct FidlCodedXUnion test_placementofattributes_ExampleUnionNullableRefTable = {.tag=kFidlTypeXUnion, .field_count=1u, .fields=Fields50test_placementofattributes_ExampleUnionNullableRef, .nullable=kFidlNullability_Nullable, .name="test.placementofattributes/ExampleUnion", .strictness=kFidlStrictness_Strict, .is_resource=kFidlIsResource_NotResource};
static const struct FidlTableField Fields39test_placementofattributes_ExampleTable[] = {
/*FidlTableField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table), .ordinal=1u}
};
const struct FidlCodedTable test_placementofattributes_ExampleTableTable = {.tag=kFidlTypeTable, .fields=Fields39test_placementofattributes_ExampleTable, .field_count=1u, .is_resource=kFidlIsResource_NotResource, .name="test.placementofattributes/ExampleTable"};
const struct FidlCodedStruct test_placementofattributes_ExampleStructTable = {.tag=kFidlTypeStruct, .contains_envelope=kFidlContainsEnvelope_DoesNotContainEnvelope, .is_empty=kFidlEmpty_IsNotEmpty, .elements=NULL, .element_count=0u, .size_v2=4u, .name="test.placementofattributes/ExampleStruct"};
static const struct FidlStructElement Fields55test_placementofattributes_ExampleProtocolMethodRequest[] = {
/*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_NotResource},.offset_v2=0u, .field_type=(fidl_type_t*)(&test_exampleusing_EmptyTable)}}
};
const struct FidlCodedStruct test_placementofattributes_ExampleProtocolMethodRequestTable = {.tag=kFidlTypeStruct, .contains_envelope=kFidlContainsEnvelope_DoesNotContainEnvelope, .is_empty=kFidlEmpty_IsNotEmpty, .elements=Fields55test_placementofattributes_ExampleProtocolMethodRequest, .element_count=1u, .size_v2=1u, .name="test.placementofattributes/ExampleProtocolMethodRequest"};
static const struct FidlStructElement Fields62test_placementofattributes_ExampleProtocolMethodRequestMessage[] = {
/*FidlStructPadding*/{.field=/*FidlStructField*/{.header=/*FidlStructElementHeader*/{.element_type=kFidlStructElementType_Field, .is_resource=kFidlIsResource_NotResource},.offset_v2=0u, .field_type=(fidl_type_t*)(&test_exampleusing_EmptyTable)}}
};
const struct FidlCodedStruct test_placementofattributes_ExampleProtocolMethodRequestMessageTable = {.tag=kFidlTypeStruct, .contains_envelope=kFidlContainsEnvelope_DoesNotContainEnvelope, .is_empty=kFidlEmpty_IsNotEmpty, .elements=Fields62test_placementofattributes_ExampleProtocolMethodRequestMessage, .element_count=1u, .size_v2=1u, .name="test.placementofattributes/ExampleProtocolMethodRequestMessage"};
static bool EnumValidatorFor_test_placementofattributes_ExampleEnum(uint64_t v) {
switch (v) {
case 1ul:
return true;
default:
return false;
}
}
const struct FidlCodedEnum test_placementofattributes_ExampleEnumTable = {.tag=kFidlTypeEnum, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .strictness=kFidlStrictness_Strict, .validate=&EnumValidatorFor_test_placementofattributes_ExampleEnum, .name="test.placementofattributes/ExampleEnum"};
const struct FidlCodedBits test_placementofattributes_ExampleBitsTable = {.tag=kFidlTypeBits, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .strictness=kFidlStrictness_Strict, .mask=1ul, .name="test.placementofattributes/ExampleBits"};