alltypes_legacy.c revision 7ef855e462b9a18b7d330e4b40f350164a6ad9da
17ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen/* Automatically generated nanopb constant definitions */ 27ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen/* Generated by 0.2.0-dev at Sun Feb 17 00:09:53 2013. */ 37ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen/* This is a file generated using nanopb-0.2.0-dev. 47ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen * It is used as a part of test suite in order to detect any 57ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen * incompatible changes made to the generator in future versions. 67ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen */ 77ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen 87ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen#include "alltypes_legacy.h" 97ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen 107ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst char SubMessage_substuff1_default[16] = "1"; 117ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int32_t SubMessage_substuff2_default = 2; 127ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst uint32_t SubMessage_substuff3_default = 3; 137ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int32_t AllTypes_opt_int32_default = 4041; 147ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int64_t AllTypes_opt_int64_default = 4042; 157ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst uint32_t AllTypes_opt_uint32_default = 4043; 167ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst uint64_t AllTypes_opt_uint64_default = 4044; 177ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int32_t AllTypes_opt_sint32_default = 4045; 187ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int64_t AllTypes_opt_sint64_default = 4046; 197ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst bool AllTypes_opt_bool_default = false; 207ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst uint32_t AllTypes_opt_fixed32_default = 4048; 217ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int32_t AllTypes_opt_sfixed32_default = 4049; 227ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst float AllTypes_opt_float_default = 4050; 237ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst uint64_t AllTypes_opt_fixed64_default = 4051; 247ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst int64_t AllTypes_opt_sfixed64_default = 4052; 257ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst double AllTypes_opt_double_default = 4053; 267ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst char AllTypes_opt_string_default[16] = "4054"; 277ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst AllTypes_opt_bytes_t AllTypes_opt_bytes_default = {4, {0x34,0x30,0x35,0x35}}; 287ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst MyEnum AllTypes_opt_enum_default = MyEnum_Second; 297ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen 307ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen 317ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst pb_field_t SubMessage_fields[4] = { 327ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 1, STRING , REQUIRED, STATIC, SubMessage, substuff1, substuff1, &SubMessage_substuff1_default), 337ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 2, INT32 , REQUIRED, STATIC, SubMessage, substuff2, substuff1, &SubMessage_substuff2_default), 347ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 3, FIXED32 , OPTIONAL, STATIC, SubMessage, substuff3, substuff2, &SubMessage_substuff3_default), 357ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_LAST_FIELD 367ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen}; 377ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen 387ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohenconst pb_field_t AllTypes_fields[53] = { 397ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 1, INT32 , REQUIRED, STATIC, AllTypes, req_int32, req_int32, 0), 407ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 2, INT64 , REQUIRED, STATIC, AllTypes, req_int64, req_int32, 0), 417ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 3, UINT32 , REQUIRED, STATIC, AllTypes, req_uint32, req_int64, 0), 427ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 4, UINT64 , REQUIRED, STATIC, AllTypes, req_uint64, req_uint32, 0), 437ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 5, SINT32 , REQUIRED, STATIC, AllTypes, req_sint32, req_uint64, 0), 447ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 6, SINT64 , REQUIRED, STATIC, AllTypes, req_sint64, req_sint32, 0), 457ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 7, BOOL , REQUIRED, STATIC, AllTypes, req_bool, req_sint64, 0), 467ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 8, FIXED32 , REQUIRED, STATIC, AllTypes, req_fixed32, req_bool, 0), 477ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 9, SFIXED32, REQUIRED, STATIC, AllTypes, req_sfixed32, req_fixed32, 0), 487ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 10, FLOAT , REQUIRED, STATIC, AllTypes, req_float, req_sfixed32, 0), 497ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 11, FIXED64 , REQUIRED, STATIC, AllTypes, req_fixed64, req_float, 0), 507ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 12, SFIXED64, REQUIRED, STATIC, AllTypes, req_sfixed64, req_fixed64, 0), 517ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 13, DOUBLE , REQUIRED, STATIC, AllTypes, req_double, req_sfixed64, 0), 527ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 14, STRING , REQUIRED, STATIC, AllTypes, req_string, req_double, 0), 537ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 15, BYTES , REQUIRED, STATIC, AllTypes, req_bytes, req_string, 0), 547ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 16, MESSAGE , REQUIRED, STATIC, AllTypes, req_submsg, req_bytes, &SubMessage_fields), 557ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 17, ENUM , REQUIRED, STATIC, AllTypes, req_enum, req_submsg, 0), 567ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 21, INT32 , REPEATED, STATIC, AllTypes, rep_int32, req_enum, 0), 577ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 22, INT64 , REPEATED, STATIC, AllTypes, rep_int64, rep_int32, 0), 587ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 23, UINT32 , REPEATED, STATIC, AllTypes, rep_uint32, rep_int64, 0), 597ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 24, UINT64 , REPEATED, STATIC, AllTypes, rep_uint64, rep_uint32, 0), 607ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 25, SINT32 , REPEATED, STATIC, AllTypes, rep_sint32, rep_uint64, 0), 617ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 26, SINT64 , REPEATED, STATIC, AllTypes, rep_sint64, rep_sint32, 0), 627ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 27, BOOL , REPEATED, STATIC, AllTypes, rep_bool, rep_sint64, 0), 637ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 28, FIXED32 , REPEATED, STATIC, AllTypes, rep_fixed32, rep_bool, 0), 647ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 29, SFIXED32, REPEATED, STATIC, AllTypes, rep_sfixed32, rep_fixed32, 0), 657ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 30, FLOAT , REPEATED, STATIC, AllTypes, rep_float, rep_sfixed32, 0), 667ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 31, FIXED64 , REPEATED, STATIC, AllTypes, rep_fixed64, rep_float, 0), 677ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 32, SFIXED64, REPEATED, STATIC, AllTypes, rep_sfixed64, rep_fixed64, 0), 687ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 33, DOUBLE , REPEATED, STATIC, AllTypes, rep_double, rep_sfixed64, 0), 697ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 34, STRING , REPEATED, STATIC, AllTypes, rep_string, rep_double, 0), 707ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 35, BYTES , REPEATED, STATIC, AllTypes, rep_bytes, rep_string, 0), 717ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 36, MESSAGE , REPEATED, STATIC, AllTypes, rep_submsg, rep_bytes, &SubMessage_fields), 727ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 37, ENUM , REPEATED, STATIC, AllTypes, rep_enum, rep_submsg, 0), 737ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 41, INT32 , OPTIONAL, STATIC, AllTypes, opt_int32, rep_enum, &AllTypes_opt_int32_default), 747ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 42, INT64 , OPTIONAL, STATIC, AllTypes, opt_int64, opt_int32, &AllTypes_opt_int64_default), 757ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 43, UINT32 , OPTIONAL, STATIC, AllTypes, opt_uint32, opt_int64, &AllTypes_opt_uint32_default), 767ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 44, UINT64 , OPTIONAL, STATIC, AllTypes, opt_uint64, opt_uint32, &AllTypes_opt_uint64_default), 777ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 45, SINT32 , OPTIONAL, STATIC, AllTypes, opt_sint32, opt_uint64, &AllTypes_opt_sint32_default), 787ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 46, SINT64 , OPTIONAL, STATIC, AllTypes, opt_sint64, opt_sint32, &AllTypes_opt_sint64_default), 797ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 47, BOOL , OPTIONAL, STATIC, AllTypes, opt_bool, opt_sint64, &AllTypes_opt_bool_default), 807ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 48, FIXED32 , OPTIONAL, STATIC, AllTypes, opt_fixed32, opt_bool, &AllTypes_opt_fixed32_default), 817ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 49, SFIXED32, OPTIONAL, STATIC, AllTypes, opt_sfixed32, opt_fixed32, &AllTypes_opt_sfixed32_default), 827ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 50, FLOAT , OPTIONAL, STATIC, AllTypes, opt_float, opt_sfixed32, &AllTypes_opt_float_default), 837ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 51, FIXED64 , OPTIONAL, STATIC, AllTypes, opt_fixed64, opt_float, &AllTypes_opt_fixed64_default), 847ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 52, SFIXED64, OPTIONAL, STATIC, AllTypes, opt_sfixed64, opt_fixed64, &AllTypes_opt_sfixed64_default), 857ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 53, DOUBLE , OPTIONAL, STATIC, AllTypes, opt_double, opt_sfixed64, &AllTypes_opt_double_default), 867ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 54, STRING , OPTIONAL, STATIC, AllTypes, opt_string, opt_double, &AllTypes_opt_string_default), 877ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 55, BYTES , OPTIONAL, STATIC, AllTypes, opt_bytes, opt_string, &AllTypes_opt_bytes_default), 887ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 56, MESSAGE , OPTIONAL, STATIC, AllTypes, opt_submsg, opt_bytes, &SubMessage_fields), 897ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 57, ENUM , OPTIONAL, STATIC, AllTypes, opt_enum, opt_submsg, &AllTypes_opt_enum_default), 907ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_FIELD( 99, INT32 , REQUIRED, STATIC, AllTypes, end, opt_enum, 0), 917ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen PB_LAST_FIELD 927ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen}; 937ef855e462b9a18b7d330e4b40f350164a6ad9daEtan Cohen 94