blob: 2aed08a42b93fbf1e5fe70ed4d2c3c988b7ef93b [file] [log] [blame]
// WARNING: This file is machine generated by fidlc.
#include <lib/fidl/internal.h>
// Forward declarations for old <-> V1 mappings
extern const fidl_type_t values_StructTable;
extern const fidl_type_t v1_values_StructTable;
// Coding tables for old wire format.
extern const fidl_type_t values_EnumTypeTable;
extern const fidl_type_t values_EnumTable;
extern const fidl_type_t values_BitsTypeTable;
extern const fidl_type_t values_BitsTable;
extern const fidl_type_t values_StructTable;
static const fidl_type_t String4294967295nonnullableTable = {.type_tag=kFidlTypeString, {.coded_string={.max_size=4294967295u, .nullable=kFidlNullability_Nonnullable}}};
static bool EnumValidatorFor_values_EnumType(uint64_t v) { return (v == 1ul) || false; }
const fidl_type_t values_EnumTypeTable = {.type_tag=kFidlTypeEnum, {.coded_enum={.underlying_type=kFidlCodedPrimitive_Int32, .validate=&EnumValidatorFor_values_EnumType, .name="values/EnumType"}}};
static bool EnumValidatorFor_values_Enum(uint64_t v) { return (v == 170ul) || false; }
const fidl_type_t values_EnumTable = {.type_tag=kFidlTypeEnum, {.coded_enum={.underlying_type=kFidlCodedPrimitive_Uint32, .validate=&EnumValidatorFor_values_Enum, .name="values/Enum"}}};
const fidl_type_t values_BitsTypeTable = {.type_tag=kFidlTypeBits, {.coded_bits={.underlying_type=kFidlCodedPrimitive_Uint32, .mask=131ul, .name="values/BitsType"}}};
const fidl_type_t values_BitsTable = {.type_tag=kFidlTypeBits, {.coded_bits={.underlying_type=kFidlCodedPrimitive_Uint32, .mask=8ul, .name="values/Bits"}}};
static const struct FidlStructField Fields13values_Struct[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=8u, .padding=0u},
/*FidlStructField*/{.type=&String4294967295nonnullableTable, .offset=8u, .padding=0u},
/*FidlStructField*/{.type=NULL, .padding_offset=25u, .padding=3u},
/*FidlStructField*/{.type=&values_EnumTable, .offset=28u, .padding=0u},
/*FidlStructField*/{.type=&values_BitsTable, .offset=32u, .padding=4u}
};
const fidl_type_t values_StructTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields13values_Struct, .field_count=5u, .size=40u, .max_out_of_line=4294967295u, .contains_union=false, .name="values/Struct", .alt_type=&v1_values_StructTable}}};
// Coding tables for v1 wire format.
extern const fidl_type_t v1_values_EnumTypeTable;
extern const fidl_type_t v1_values_EnumTable;
extern const fidl_type_t v1_values_BitsTypeTable;
extern const fidl_type_t v1_values_BitsTable;
extern const fidl_type_t v1_values_StructTable;
static const fidl_type_t v1_String4294967295nonnullableTable = {.type_tag=kFidlTypeString, {.coded_string={.max_size=4294967295u, .nullable=kFidlNullability_Nonnullable}}};
static bool EnumValidatorFor_v1_values_EnumType(uint64_t v) { return (v == 1ul) || false; }
const fidl_type_t v1_values_EnumTypeTable = {.type_tag=kFidlTypeEnum, {.coded_enum={.underlying_type=kFidlCodedPrimitive_Int32, .validate=&EnumValidatorFor_v1_values_EnumType, .name="values/EnumType"}}};
static bool EnumValidatorFor_v1_values_Enum(uint64_t v) { return (v == 170ul) || false; }
const fidl_type_t v1_values_EnumTable = {.type_tag=kFidlTypeEnum, {.coded_enum={.underlying_type=kFidlCodedPrimitive_Uint32, .validate=&EnumValidatorFor_v1_values_Enum, .name="values/Enum"}}};
const fidl_type_t v1_values_BitsTypeTable = {.type_tag=kFidlTypeBits, {.coded_bits={.underlying_type=kFidlCodedPrimitive_Uint32, .mask=131ul, .name="values/BitsType"}}};
const fidl_type_t v1_values_BitsTable = {.type_tag=kFidlTypeBits, {.coded_bits={.underlying_type=kFidlCodedPrimitive_Uint32, .mask=8ul, .name="values/Bits"}}};
static const struct FidlStructField Fields16v1_values_Struct[] = {
/*FidlStructField*/{.type=NULL, .padding_offset=8u, .padding=0u},
/*FidlStructField*/{.type=&v1_String4294967295nonnullableTable, .offset=8u, .padding=0u},
/*FidlStructField*/{.type=NULL, .padding_offset=25u, .padding=3u},
/*FidlStructField*/{.type=&v1_values_EnumTable, .offset=28u, .padding=0u},
/*FidlStructField*/{.type=&v1_values_BitsTable, .offset=32u, .padding=4u}
};
const fidl_type_t v1_values_StructTable = {.type_tag=kFidlTypeStruct, {.coded_struct={.fields=Fields16v1_values_Struct, .field_count=5u, .size=40u, .max_out_of_line=4294967295u, .contains_union=false, .name="values/Struct", .alt_type=&values_StructTable}}};