| // WARNING: This file is machine generated by fidlc. |
| |
| #include <lib/fidl/internal.h> |
| |
| |
| extern const struct FidlCodedEnum test_name_obj_typeTable; |
| extern const struct FidlCodedStruct test_name_WithErrorSyntax_ResponseAsStruct_ResponseTable; |
| extern const struct FidlCodedXUnion test_name_WithErrorSyntax_ResponseAsStruct_ResultTable; |
| extern const struct FidlCodedXUnion test_name_WithErrorSyntax_ResponseAsStruct_ResultNullableRefTable; |
| extern const struct FidlCodedStruct test_name_WithErrorSyntax_ErrorAsPrimitive_ResponseTable; |
| extern const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsPrimitive_ResultTable; |
| extern const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsPrimitive_ResultNullableRefTable; |
| extern const struct FidlCodedStruct test_name_WithErrorSyntax_ErrorAsEnum_ResponseTable; |
| extern const struct FidlCodedEnum test_name_ErrorEnunTable; |
| extern const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsEnum_ResultTable; |
| extern const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsEnum_ResultNullableRefTable; |
| |
| |
| extern const struct FidlCodedStruct test_name_TransitionalRequestRequestTable; |
| const struct FidlCodedStruct test_name_TransitionalRequestRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=24u, .name="test.name/TransitionalRequestRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_TransitionalRequestResponseTable; |
| const struct FidlCodedStruct test_name_TransitionalRequestResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=24u, .name="test.name/TransitionalRequestResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_TransitionalOneWayRequestTable; |
| const struct FidlCodedStruct test_name_TransitionalOneWayRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=24u, .name="test.name/TransitionalOneWayRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_TransitionalEventEventTable; |
| const struct FidlCodedStruct test_name_TransitionalEventEventTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=24u, .name="test.name/TransitionalEventEvent"}; |
| |
| extern const struct FidlCodedStruct test_name_ChannelProtocolMethodARequestTable; |
| const struct FidlCodedStruct test_name_ChannelProtocolMethodARequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=32u, .name="test.name/ChannelProtocolMethodARequest"}; |
| |
| extern const struct FidlCodedStruct test_name_ChannelProtocolEventAEventTable; |
| const struct FidlCodedStruct test_name_ChannelProtocolEventAEventTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=32u, .name="test.name/ChannelProtocolEventAEvent"}; |
| |
| extern const struct FidlCodedStruct test_name_ChannelProtocolMethodBRequestTable; |
| const struct FidlCodedStruct test_name_ChannelProtocolMethodBRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=32u, .name="test.name/ChannelProtocolMethodBRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_ChannelProtocolMethodBResponseTable; |
| const struct FidlCodedStruct test_name_ChannelProtocolMethodBResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=24u, .name="test.name/ChannelProtocolMethodBResponse"}; |
| |
| static const struct FidlCodedHandle HandlesocketnonnullableTable = {.tag=kFidlTypeHandle, .handle_subtype=ZX_OBJ_TYPE_SOCKET, .handle_rights=2147483648u, .nullable=kFidlNullability_Nonnullable}; |
| |
| extern const struct FidlCodedStruct test_name_ChannelProtocolMutateSocketRequestTable; |
| static const struct FidlStructField Fields44test_name_ChannelProtocolMutateSocketRequest[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&HandlesocketnonnullableTable), .offset=16u, .padding=4u} |
| }; |
| const struct FidlCodedStruct test_name_ChannelProtocolMutateSocketRequestTable = {.tag=kFidlTypeStruct, .fields=Fields44test_name_ChannelProtocolMutateSocketRequest, .field_count=1u, .size=24u, .name="test.name/ChannelProtocolMutateSocketRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_ChannelProtocolMutateSocketResponseTable; |
| static const struct FidlStructField Fields45test_name_ChannelProtocolMutateSocketResponse[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&HandlesocketnonnullableTable), .offset=16u, .padding=4u} |
| }; |
| const struct FidlCodedStruct test_name_ChannelProtocolMutateSocketResponseTable = {.tag=kFidlTypeStruct, .fields=Fields45test_name_ChannelProtocolMutateSocketResponse, .field_count=1u, .size=24u, .name="test.name/ChannelProtocolMutateSocketResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestNoResponseRequestTable; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestNoResponseRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithAndWithoutRequestResponseNoRequestNoResponseRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestEmptyResponseRequestTable; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestEmptyResponseRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithAndWithoutRequestResponseNoRequestEmptyResponseRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestEmptyResponseResponseTable; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestEmptyResponseResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithAndWithoutRequestResponseNoRequestEmptyResponseResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestWithResponseRequestTable; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestWithResponseRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithAndWithoutRequestResponseNoRequestWithResponseRequest"}; |
| |
| static const struct FidlCodedString String4294967295nonnullableTable = {.tag=kFidlTypeString, .max_size=4294967295u, .nullable=kFidlNullability_Nonnullable}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestWithResponseResponseTable; |
| static const struct FidlStructField Fields68test_name_WithAndWithoutRequestResponseNoRequestWithResponseResponse[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&String4294967295nonnullableTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseNoRequestWithResponseResponseTable = {.tag=kFidlTypeStruct, .fields=Fields68test_name_WithAndWithoutRequestResponseNoRequestWithResponseResponse, .field_count=1u, .size=32u, .name="test.name/WithAndWithoutRequestResponseNoRequestWithResponseResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestNoResponseRequestTable; |
| static const struct FidlStructField Fields67test_name_WithAndWithoutRequestResponseWithRequestNoResponseRequest[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&String4294967295nonnullableTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestNoResponseRequestTable = {.tag=kFidlTypeStruct, .fields=Fields67test_name_WithAndWithoutRequestResponseWithRequestNoResponseRequest, .field_count=1u, .size=32u, .name="test.name/WithAndWithoutRequestResponseWithRequestNoResponseRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestEmptyResponseRequestTable; |
| static const struct FidlStructField Fields70test_name_WithAndWithoutRequestResponseWithRequestEmptyResponseRequest[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&String4294967295nonnullableTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestEmptyResponseRequestTable = {.tag=kFidlTypeStruct, .fields=Fields70test_name_WithAndWithoutRequestResponseWithRequestEmptyResponseRequest, .field_count=1u, .size=32u, .name="test.name/WithAndWithoutRequestResponseWithRequestEmptyResponseRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestEmptyResponseResponseTable; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestEmptyResponseResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithAndWithoutRequestResponseWithRequestEmptyResponseResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestWithResponseRequestTable; |
| static const struct FidlStructField Fields69test_name_WithAndWithoutRequestResponseWithRequestWithResponseRequest[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&String4294967295nonnullableTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestWithResponseRequestTable = {.tag=kFidlTypeStruct, .fields=Fields69test_name_WithAndWithoutRequestResponseWithRequestWithResponseRequest, .field_count=1u, .size=32u, .name="test.name/WithAndWithoutRequestResponseWithRequestWithResponseRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestWithResponseResponseTable; |
| static const struct FidlStructField Fields70test_name_WithAndWithoutRequestResponseWithRequestWithResponseResponse[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&String4294967295nonnullableTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseWithRequestWithResponseResponseTable = {.tag=kFidlTypeStruct, .fields=Fields70test_name_WithAndWithoutRequestResponseWithRequestWithResponseResponse, .field_count=1u, .size=32u, .name="test.name/WithAndWithoutRequestResponseWithRequestWithResponseResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseOnEmptyResponseEventTable; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseOnEmptyResponseEventTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithAndWithoutRequestResponseOnEmptyResponseEvent"}; |
| |
| extern const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseOnWithResponseEventTable; |
| static const struct FidlStructField Fields58test_name_WithAndWithoutRequestResponseOnWithResponseEvent[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&String4294967295nonnullableTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithAndWithoutRequestResponseOnWithResponseEventTable = {.tag=kFidlTypeStruct, .fields=Fields58test_name_WithAndWithoutRequestResponseOnWithResponseEvent, .field_count=1u, .size=32u, .name="test.name/WithAndWithoutRequestResponseOnWithResponseEvent"}; |
| |
| extern const struct FidlCodedStruct test_name_WithErrorSyntaxResponseAsStructRequestTable; |
| const struct FidlCodedStruct test_name_WithErrorSyntaxResponseAsStructRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithErrorSyntaxResponseAsStructRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithErrorSyntaxResponseAsStructResponseTable; |
| static const struct FidlStructField Fields49test_name_WithErrorSyntaxResponseAsStructResponse[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ResponseAsStruct_ResultTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithErrorSyntaxResponseAsStructResponseTable = {.tag=kFidlTypeStruct, .fields=Fields49test_name_WithErrorSyntaxResponseAsStructResponse, .field_count=1u, .size=40u, .name="test.name/WithErrorSyntaxResponseAsStructResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsPrimitiveRequestTable; |
| const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsPrimitiveRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithErrorSyntaxErrorAsPrimitiveRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsPrimitiveResponseTable; |
| static const struct FidlStructField Fields49test_name_WithErrorSyntaxErrorAsPrimitiveResponse[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ErrorAsPrimitive_ResultTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsPrimitiveResponseTable = {.tag=kFidlTypeStruct, .fields=Fields49test_name_WithErrorSyntaxErrorAsPrimitiveResponse, .field_count=1u, .size=40u, .name="test.name/WithErrorSyntaxErrorAsPrimitiveResponse"}; |
| |
| extern const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsEnumRequestTable; |
| const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsEnumRequestTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=16u, .name="test.name/WithErrorSyntaxErrorAsEnumRequest"}; |
| |
| extern const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsEnumResponseTable; |
| static const struct FidlStructField Fields44test_name_WithErrorSyntaxErrorAsEnumResponse[] = { |
| /*FidlStructField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ErrorAsEnum_ResultTable), .offset=16u, .padding=0u} |
| }; |
| const struct FidlCodedStruct test_name_WithErrorSyntaxErrorAsEnumResponseTable = {.tag=kFidlTypeStruct, .fields=Fields44test_name_WithErrorSyntaxErrorAsEnumResponse, .field_count=1u, .size=40u, .name="test.name/WithErrorSyntaxErrorAsEnumResponse"}; |
| |
| |
| static bool EnumValidatorFor_test_name_obj_type(uint64_t v) { return (v == 0ul) || (v == 14ul) || false; } |
| const struct FidlCodedEnum test_name_obj_typeTable = {.tag=kFidlTypeEnum, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .validate=&EnumValidatorFor_test_name_obj_type, .name="test.name/obj_type"}; |
| |
| const struct FidlCodedStruct test_name_WithErrorSyntax_ResponseAsStruct_ResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=24u, .name="test.name/WithErrorSyntax_ResponseAsStruct_Response"}; |
| |
| static const struct FidlXUnionField Fields49test_name_WithErrorSyntax_ResponseAsStruct_Result[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ResponseAsStruct_ResponseTable)}, |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)} |
| }; |
| const struct FidlCodedXUnion test_name_WithErrorSyntax_ResponseAsStruct_ResultTable = {.tag=kFidlTypeXUnion, .field_count=2u, .fields=Fields49test_name_WithErrorSyntax_ResponseAsStruct_Result, .nullable=kFidlNullability_Nonnullable, .name="test.name/WithErrorSyntax_ResponseAsStruct_Result", .strictness=kFidlStrictness_Strict}; |
| static const struct FidlXUnionField Fields60test_name_WithErrorSyntax_ResponseAsStruct_ResultNullableRef[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ResponseAsStruct_ResponseTable)}, |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)} |
| }; |
| const struct FidlCodedXUnion test_name_WithErrorSyntax_ResponseAsStruct_ResultNullableRefTable = {.tag=kFidlTypeXUnion, .field_count=2u, .fields=Fields60test_name_WithErrorSyntax_ResponseAsStruct_ResultNullableRef, .nullable=kFidlNullability_Nullable, .name="test.name/WithErrorSyntax_ResponseAsStruct_Result", .strictness=kFidlStrictness_Strict}; |
| const struct FidlCodedStruct test_name_WithErrorSyntax_ErrorAsPrimitive_ResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=1u, .name="test.name/WithErrorSyntax_ErrorAsPrimitive_Response"}; |
| |
| static const struct FidlXUnionField Fields49test_name_WithErrorSyntax_ErrorAsPrimitive_Result[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ErrorAsPrimitive_ResponseTable)}, |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)} |
| }; |
| const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsPrimitive_ResultTable = {.tag=kFidlTypeXUnion, .field_count=2u, .fields=Fields49test_name_WithErrorSyntax_ErrorAsPrimitive_Result, .nullable=kFidlNullability_Nonnullable, .name="test.name/WithErrorSyntax_ErrorAsPrimitive_Result", .strictness=kFidlStrictness_Strict}; |
| static const struct FidlXUnionField Fields60test_name_WithErrorSyntax_ErrorAsPrimitive_ResultNullableRef[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ErrorAsPrimitive_ResponseTable)}, |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&fidl_internal_kUint32Table)} |
| }; |
| const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsPrimitive_ResultNullableRefTable = {.tag=kFidlTypeXUnion, .field_count=2u, .fields=Fields60test_name_WithErrorSyntax_ErrorAsPrimitive_ResultNullableRef, .nullable=kFidlNullability_Nullable, .name="test.name/WithErrorSyntax_ErrorAsPrimitive_Result", .strictness=kFidlStrictness_Strict}; |
| const struct FidlCodedStruct test_name_WithErrorSyntax_ErrorAsEnum_ResponseTable = {.tag=kFidlTypeStruct, .fields=NULL, .field_count=0u, .size=1u, .name="test.name/WithErrorSyntax_ErrorAsEnum_Response"}; |
| |
| static bool EnumValidatorFor_test_name_ErrorEnun(uint64_t v) { return (v == 1ul) || (v == 2ul) || false; } |
| const struct FidlCodedEnum test_name_ErrorEnunTable = {.tag=kFidlTypeEnum, .underlying_type=kFidlCodedPrimitiveSubtype_Uint32, .validate=&EnumValidatorFor_test_name_ErrorEnun, .name="test.name/ErrorEnun"}; |
| |
| static const struct FidlXUnionField Fields44test_name_WithErrorSyntax_ErrorAsEnum_Result[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ErrorAsEnum_ResponseTable)}, |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_ErrorEnunTable)} |
| }; |
| const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsEnum_ResultTable = {.tag=kFidlTypeXUnion, .field_count=2u, .fields=Fields44test_name_WithErrorSyntax_ErrorAsEnum_Result, .nullable=kFidlNullability_Nonnullable, .name="test.name/WithErrorSyntax_ErrorAsEnum_Result", .strictness=kFidlStrictness_Strict}; |
| static const struct FidlXUnionField Fields55test_name_WithErrorSyntax_ErrorAsEnum_ResultNullableRef[] = { |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_WithErrorSyntax_ErrorAsEnum_ResponseTable)}, |
| /*FidlXUnionField*/{.type=(fidl_type_t*)(&test_name_ErrorEnunTable)} |
| }; |
| const struct FidlCodedXUnion test_name_WithErrorSyntax_ErrorAsEnum_ResultNullableRefTable = {.tag=kFidlTypeXUnion, .field_count=2u, .fields=Fields55test_name_WithErrorSyntax_ErrorAsEnum_ResultNullableRef, .nullable=kFidlNullability_Nullable, .name="test.name/WithErrorSyntax_ErrorAsEnum_Result", .strictness=kFidlStrictness_Strict}; |