blob: 4e77dd33fedbe12b2a2adcc8bb4b5a61ece7b800 [file] [log] [blame]
// WARNING: This file is machine generated by fidlc.
#include <lib/fidl/internal.h>
// Forward declarations for old <-> V1 mappings
static const fidl_type_t Vector4294967295nullable5int32Table;
extern const fidl_type_t fidl_test_nullable_SimpleProtocolAddRequestTable;
extern const fidl_type_t fidl_test_nullable_SimpleProtocolAddResponseTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableVectorTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableUnionTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableStructTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableStringTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableRequestTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableProtocolTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableHandleTable;
extern const fidl_type_t fidl_test_nullable_SimpleUnionTable;
extern const fidl_type_t fidl_test_nullable_Int32WrapperTable;
static const fidl_type_t v1_Vector4294967295nullable5int32Table;
extern const fidl_type_t v1_fidl_test_nullable_SimpleProtocolAddRequestTable;
extern const fidl_type_t v1_fidl_test_nullable_SimpleProtocolAddResponseTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableVectorTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableUnionTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableStructTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableStringTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableRequestTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableProtocolTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableHandleTable;
extern const fidl_type_t v1_fidl_test_nullable_SimpleUnionTable;
extern const fidl_type_t v1_fidl_test_nullable_SimpleUnionNullableRefTable;
extern const fidl_type_t v1_fidl_test_nullable_Int32WrapperTable;
// Coding tables for old wire format.
extern const fidl_type_t fidl_test_nullable_StructWithNullableVectorTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableUnionTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableStructTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableStringTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableRequestTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableProtocolTable;
extern const fidl_type_t fidl_test_nullable_StructWithNullableHandleTable;
extern const fidl_type_t fidl_test_nullable_SimpleUnionTable;
extern const fidl_type_t fidl_test_nullable_Int32WrapperTable;
static const fidl_type_t Pointer30fidl_test_nullable_SimpleUnionTable __attribute__((unused)) = {.type_tag=kFidlTypeUnionPointer, {.coded_union_pointer={.union_type=&fidl_test_nullable_SimpleUnionTable.coded_union}}};
static const fidl_type_t Pointer31fidl_test_nullable_Int32WrapperTable = {.type_tag=kFidlTypeStructPointer, {.coded_struct_pointer={.struct_type=&fidl_test_nullable_Int32WrapperTable.coded_struct}}};
static const fidl_type_t Vector4294967295nullable5int32Table = {.type_tag=kFidlTypeVector, {.coded_vector={.element=NULL, .max_count=4294967295u, .element_size=4u, .nullable=kFidlNullability_Nullable, .alt_type=&v1_Vector4294967295nullable5int32Table}}};
static const fidl_type_t String4294967295nullableTable = {.type_tag=kFidlTypeString, {.coded_string={.max_size=4294967295u, .nullable=kFidlNullability_Nullable}}};
static const fidl_type_t Request33fidl_test_nullable_SimpleProtocolnullableTable = {.type_tag=kFidlTypeHandle, {.coded_handle={.handle_subtype=ZX_OBJ_TYPE_CHANNEL, .nullable=kFidlNullability_Nullable}}};
static const fidl_type_t Protocol33fidl_test_nullable_SimpleProtocolnullableTable = {.type_tag=kFidlTypeHandle, {.coded_handle={.handle_subtype=ZX_OBJ_TYPE_CHANNEL, .nullable=kFidlNullability_Nullable}}};
static const fidl_type_t HandlevmonullableTable = {.type_tag=kFidlTypeHandle, {.coded_handle={.handle_subtype=ZX_OBJ_TYPE_VMO, .handle_rights=2147483648u, .nullable=kFidlNullability_Nullable}}};
extern const fidl_type_t fidl_test_nullable_SimpleProtocolAddRequestTable;
static const struct FidlStructField Fields43fidl_test_nullable_SimpleProtocolAddRequest[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=20u, .padding=0u},
/*FidlStructField*/{.type=NULL, .padding_offset=24u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_SimpleProtocolAddRequestTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields43fidl_test_nullable_SimpleProtocolAddRequest, .field_count=2u, .size=24u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/SimpleProtocolAddRequest", .alt_type=&v1_fidl_test_nullable_SimpleProtocolAddRequestTable}}};
extern const fidl_type_t fidl_test_nullable_SimpleProtocolAddResponseTable;
static const struct FidlStructField Fields44fidl_test_nullable_SimpleProtocolAddResponse[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=20u, .padding=4u}
};
const fidl_type_t fidl_test_nullable_SimpleProtocolAddResponseTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields44fidl_test_nullable_SimpleProtocolAddResponse, .field_count=1u, .size=24u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/SimpleProtocolAddResponse", .alt_type=&v1_fidl_test_nullable_SimpleProtocolAddResponseTable}}};
static const struct FidlStructField Fields43fidl_test_nullable_StructWithNullableVector[] = {
/*FidlStructField*/{.type=&Vector4294967295nullable5int32Table, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableVectorTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields43fidl_test_nullable_StructWithNullableVector, .field_count=1u, .size=16u, .max_out_of_line=4294967295u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableVector", .alt_type=&v1_fidl_test_nullable_StructWithNullableVectorTable}}};
static const struct FidlStructField Fields42fidl_test_nullable_StructWithNullableUnion[] = {
/*FidlStructField*/{.type=&Pointer30fidl_test_nullable_SimpleUnionTable, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableUnionTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields42fidl_test_nullable_StructWithNullableUnion, .field_count=1u, .size=8u, .max_out_of_line=8u, .contains_union=true, .name="fidl.test.nullable/StructWithNullableUnion", .alt_type=&v1_fidl_test_nullable_StructWithNullableUnionTable}}};
static const struct FidlStructField Fields43fidl_test_nullable_StructWithNullableStruct[] = {
/*FidlStructField*/{.type=&Pointer31fidl_test_nullable_Int32WrapperTable, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableStructTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields43fidl_test_nullable_StructWithNullableStruct, .field_count=1u, .size=8u, .max_out_of_line=8u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableStruct", .alt_type=&v1_fidl_test_nullable_StructWithNullableStructTable}}};
static const struct FidlStructField Fields43fidl_test_nullable_StructWithNullableString[] = {
/*FidlStructField*/{.type=&String4294967295nullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableStringTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields43fidl_test_nullable_StructWithNullableString, .field_count=1u, .size=16u, .max_out_of_line=4294967295u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableString", .alt_type=&v1_fidl_test_nullable_StructWithNullableStringTable}}};
static const struct FidlStructField Fields44fidl_test_nullable_StructWithNullableRequest[] = {
/*FidlStructField*/{.type=&Request33fidl_test_nullable_SimpleProtocolnullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableRequestTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields44fidl_test_nullable_StructWithNullableRequest, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableRequest", .alt_type=&v1_fidl_test_nullable_StructWithNullableRequestTable}}};
static const struct FidlStructField Fields45fidl_test_nullable_StructWithNullableProtocol[] = {
/*FidlStructField*/{.type=&Protocol33fidl_test_nullable_SimpleProtocolnullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableProtocolTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields45fidl_test_nullable_StructWithNullableProtocol, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableProtocol", .alt_type=&v1_fidl_test_nullable_StructWithNullableProtocolTable}}};
static const struct FidlStructField Fields43fidl_test_nullable_StructWithNullableHandle[] = {
/*FidlStructField*/{.type=&HandlevmonullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_StructWithNullableHandleTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields43fidl_test_nullable_StructWithNullableHandle, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableHandle", .alt_type=&v1_fidl_test_nullable_StructWithNullableHandleTable}}};
static const struct FidlUnionField Fields30fidl_test_nullable_SimpleUnion[] = {
/*FidlUnionField*/{.type=NULL, .padding=0u, .xunion_ordinal=1u},
/*FidlUnionField*/{.type=NULL, .padding=0u, .xunion_ordinal=2u}
};
const fidl_type_t fidl_test_nullable_SimpleUnionTable = {.type_tag=kFidlTypeUnion, {.coded_union={.fields=Fields30fidl_test_nullable_SimpleUnion, .field_count=2u, .data_offset=4u, .size=8u, .name="fidl.test.nullable/SimpleUnion", .alt_type=&v1_fidl_test_nullable_SimpleUnionTable}}};
static const struct FidlStructField Fields31fidl_test_nullable_Int32Wrapper[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=4u, .padding=0u}
};
const fidl_type_t fidl_test_nullable_Int32WrapperTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields31fidl_test_nullable_Int32Wrapper, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/Int32Wrapper", .alt_type=&v1_fidl_test_nullable_Int32WrapperTable}}};
// Coding tables for v1 wire format.
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableVectorTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableUnionTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableStructTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableStringTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableRequestTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableProtocolTable;
extern const fidl_type_t v1_fidl_test_nullable_StructWithNullableHandleTable;
extern const fidl_type_t v1_fidl_test_nullable_SimpleUnionTable;
extern const fidl_type_t v1_fidl_test_nullable_SimpleUnionNullableRefTable;
extern const fidl_type_t v1_fidl_test_nullable_Int32WrapperTable;
static const fidl_type_t v1_Pointer34v1_fidl_test_nullable_Int32WrapperTable = {.type_tag=kFidlTypeStructPointer, {.coded_struct_pointer={.struct_type=&v1_fidl_test_nullable_Int32WrapperTable.coded_struct}}};
static const fidl_type_t v1_Vector4294967295nullable5int32Table = {.type_tag=kFidlTypeVector, {.coded_vector={.element=NULL, .max_count=4294967295u, .element_size=4u, .nullable=kFidlNullability_Nullable, .alt_type=&Vector4294967295nullable5int32Table}}};
static const fidl_type_t v1_String4294967295nullableTable = {.type_tag=kFidlTypeString, {.coded_string={.max_size=4294967295u, .nullable=kFidlNullability_Nullable}}};
static const fidl_type_t v1_Request36v1_fidl_test_nullable_SimpleProtocolnullableTable = {.type_tag=kFidlTypeHandle, {.coded_handle={.handle_subtype=ZX_OBJ_TYPE_CHANNEL, .nullable=kFidlNullability_Nullable}}};
static const fidl_type_t v1_Protocol36v1_fidl_test_nullable_SimpleProtocolnullableTable = {.type_tag=kFidlTypeHandle, {.coded_handle={.handle_subtype=ZX_OBJ_TYPE_CHANNEL, .nullable=kFidlNullability_Nullable}}};
static const fidl_type_t v1_HandlevmonullableTable = {.type_tag=kFidlTypeHandle, {.coded_handle={.handle_subtype=ZX_OBJ_TYPE_VMO, .handle_rights=2147483648u, .nullable=kFidlNullability_Nullable}}};
extern const fidl_type_t v1_fidl_test_nullable_SimpleProtocolAddRequestTable;
static const struct FidlStructField Fields46v1_fidl_test_nullable_SimpleProtocolAddRequest[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=20u, .padding=0u},
/*FidlStructField*/{.type=NULL, .padding_offset=24u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_SimpleProtocolAddRequestTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields46v1_fidl_test_nullable_SimpleProtocolAddRequest, .field_count=2u, .size=24u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/SimpleProtocolAddRequest", .alt_type=&fidl_test_nullable_SimpleProtocolAddRequestTable}}};
extern const fidl_type_t v1_fidl_test_nullable_SimpleProtocolAddResponseTable;
static const struct FidlStructField Fields47v1_fidl_test_nullable_SimpleProtocolAddResponse[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=20u, .padding=4u}
};
const fidl_type_t v1_fidl_test_nullable_SimpleProtocolAddResponseTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields47v1_fidl_test_nullable_SimpleProtocolAddResponse, .field_count=1u, .size=24u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/SimpleProtocolAddResponse", .alt_type=&fidl_test_nullable_SimpleProtocolAddResponseTable}}};
static const struct FidlStructField Fields46v1_fidl_test_nullable_StructWithNullableVector[] = {
/*FidlStructField*/{.type=&v1_Vector4294967295nullable5int32Table, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableVectorTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields46v1_fidl_test_nullable_StructWithNullableVector, .field_count=1u, .size=16u, .max_out_of_line=4294967295u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableVector", .alt_type=&fidl_test_nullable_StructWithNullableVectorTable}}};
static const struct FidlStructField Fields45v1_fidl_test_nullable_StructWithNullableUnion[] = {
/*FidlStructField*/{.type=&v1_fidl_test_nullable_SimpleUnionNullableRefTable, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableUnionTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields45v1_fidl_test_nullable_StructWithNullableUnion, .field_count=1u, .size=24u, .max_out_of_line=8u, .contains_union=true, .name="fidl.test.nullable/StructWithNullableUnion", .alt_type=&fidl_test_nullable_StructWithNullableUnionTable}}};
static const struct FidlStructField Fields46v1_fidl_test_nullable_StructWithNullableStruct[] = {
/*FidlStructField*/{.type=&v1_Pointer34v1_fidl_test_nullable_Int32WrapperTable, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableStructTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields46v1_fidl_test_nullable_StructWithNullableStruct, .field_count=1u, .size=8u, .max_out_of_line=8u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableStruct", .alt_type=&fidl_test_nullable_StructWithNullableStructTable}}};
static const struct FidlStructField Fields46v1_fidl_test_nullable_StructWithNullableString[] = {
/*FidlStructField*/{.type=&v1_String4294967295nullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableStringTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields46v1_fidl_test_nullable_StructWithNullableString, .field_count=1u, .size=16u, .max_out_of_line=4294967295u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableString", .alt_type=&fidl_test_nullable_StructWithNullableStringTable}}};
static const struct FidlStructField Fields47v1_fidl_test_nullable_StructWithNullableRequest[] = {
/*FidlStructField*/{.type=&v1_Request36v1_fidl_test_nullable_SimpleProtocolnullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableRequestTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields47v1_fidl_test_nullable_StructWithNullableRequest, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableRequest", .alt_type=&fidl_test_nullable_StructWithNullableRequestTable}}};
static const struct FidlStructField Fields48v1_fidl_test_nullable_StructWithNullableProtocol[] = {
/*FidlStructField*/{.type=&v1_Protocol36v1_fidl_test_nullable_SimpleProtocolnullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableProtocolTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields48v1_fidl_test_nullable_StructWithNullableProtocol, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableProtocol", .alt_type=&fidl_test_nullable_StructWithNullableProtocolTable}}};
static const struct FidlStructField Fields46v1_fidl_test_nullable_StructWithNullableHandle[] = {
/*FidlStructField*/{.type=&v1_HandlevmonullableTable, .offset=0u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_StructWithNullableHandleTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields46v1_fidl_test_nullable_StructWithNullableHandle, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/StructWithNullableHandle", .alt_type=&fidl_test_nullable_StructWithNullableHandleTable}}};
static const struct FidlXUnionField Fields33v1_fidl_test_nullable_SimpleUnion[] = {
/*FidlXUnionField*/{.type=&fidl_internal_kInt32Table, .ordinal=1u},
/*FidlXUnionField*/{.type=&fidl_internal_kFloat32Table, .ordinal=2u}
};
const fidl_type_t v1_fidl_test_nullable_SimpleUnionTable = {.type_tag=kFidlTypeXUnion, {.coded_xunion={.field_count=2u, .fields=Fields33v1_fidl_test_nullable_SimpleUnion, .nullable=kFidlNullability_Nonnullable, .name="fidl.test.nullable/SimpleUnion", .strictness=kFidlStrictness_Strict, .alt_type=&fidl_test_nullable_SimpleUnionTable}}};
static const struct FidlXUnionField Fields44v1_fidl_test_nullable_SimpleUnionNullableRef[] = {
/*FidlXUnionField*/{.type=&fidl_internal_kInt32Table, .ordinal=1u},
/*FidlXUnionField*/{.type=&fidl_internal_kFloat32Table, .ordinal=2u}
};
const fidl_type_t v1_fidl_test_nullable_SimpleUnionNullableRefTable = {.type_tag=kFidlTypeXUnion, {.coded_xunion={.field_count=2u, .fields=Fields44v1_fidl_test_nullable_SimpleUnionNullableRef, .nullable=kFidlNullability_Nullable, .name="fidl.test.nullable/SimpleUnion", .strictness=kFidlStrictness_Strict, .alt_type=&Pointer30fidl_test_nullable_SimpleUnionTable}}};
static const struct FidlStructField Fields34v1_fidl_test_nullable_Int32Wrapper[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=4u, .padding=0u}
};
const fidl_type_t v1_fidl_test_nullable_Int32WrapperTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields34v1_fidl_test_nullable_Int32Wrapper, .field_count=1u, .size=4u, .max_out_of_line=0u, .contains_union=false, .name="fidl.test.nullable/Int32Wrapper", .alt_type=&fidl_test_nullable_Int32WrapperTable}}};