Add a test for the backwards compatibility of generated files.
[apps/agl-service-can-low-level.git] / tests / bc_alltypes.pb.h
1 /* Automatically generated nanopb header */
2 /* This is a file generated using nanopb-0.1.1.
3  * It is used as a part of test suite in order to detect any
4  * incompatible changes made to the generator in future versions.
5  */
6 #ifndef _PB_BC_ALLTYPES_PB_H_
7 #define _PB_BC_ALLTYPES_PB_H_
8 #include <pb.h>
9
10 /* Enum definitions */
11 typedef enum {
12     MyEnum_Zero = 0,
13     MyEnum_First = 1,
14     MyEnum_Second = 2,
15     MyEnum_Truth = 42
16 } MyEnum;
17
18 /* Struct definitions */
19 typedef struct {
20     char substuff1[16];
21     int32_t substuff2;
22     bool has_substuff3;
23     uint32_t substuff3;
24 } SubMessage;
25
26 typedef struct {
27     size_t size;
28     uint8_t bytes[16];
29 } AllTypes_req_bytes_t;
30
31 typedef struct {
32     size_t size;
33     uint8_t bytes[16];
34 } AllTypes_rep_bytes_t;
35
36 typedef struct {
37     size_t size;
38     uint8_t bytes[16];
39 } AllTypes_opt_bytes_t;
40
41 typedef struct {
42     int32_t req_int32;
43     int64_t req_int64;
44     uint32_t req_uint32;
45     uint64_t req_uint64;
46     int32_t req_sint32;
47     int64_t req_sint64;
48     bool req_bool;
49     uint32_t req_fixed32;
50     int32_t req_sfixed32;
51     float req_float;
52     uint64_t req_fixed64;
53     int64_t req_sfixed64;
54     double req_double;
55     char req_string[16];
56     AllTypes_req_bytes_t req_bytes;
57     SubMessage req_submsg;
58     MyEnum req_enum;
59     size_t rep_int32_count;
60     int32_t rep_int32[5];
61     size_t rep_int64_count;
62     int64_t rep_int64[5];
63     size_t rep_uint32_count;
64     uint32_t rep_uint32[5];
65     size_t rep_uint64_count;
66     uint64_t rep_uint64[5];
67     size_t rep_sint32_count;
68     int32_t rep_sint32[5];
69     size_t rep_sint64_count;
70     int64_t rep_sint64[5];
71     size_t rep_bool_count;
72     bool rep_bool[5];
73     size_t rep_fixed32_count;
74     uint32_t rep_fixed32[5];
75     size_t rep_sfixed32_count;
76     int32_t rep_sfixed32[5];
77     size_t rep_float_count;
78     float rep_float[5];
79     size_t rep_fixed64_count;
80     uint64_t rep_fixed64[5];
81     size_t rep_sfixed64_count;
82     int64_t rep_sfixed64[5];
83     size_t rep_double_count;
84     double rep_double[5];
85     size_t rep_string_count;
86     char rep_string[5][16];
87     size_t rep_bytes_count;
88     AllTypes_rep_bytes_t rep_bytes[5];
89     size_t rep_submsg_count;
90     SubMessage rep_submsg[5];
91     size_t rep_enum_count;
92     MyEnum rep_enum[5];
93     bool has_opt_int32;
94     int32_t opt_int32;
95     bool has_opt_int64;
96     int64_t opt_int64;
97     bool has_opt_uint32;
98     uint32_t opt_uint32;
99     bool has_opt_uint64;
100     uint64_t opt_uint64;
101     bool has_opt_sint32;
102     int32_t opt_sint32;
103     bool has_opt_sint64;
104     int64_t opt_sint64;
105     bool has_opt_bool;
106     bool opt_bool;
107     bool has_opt_fixed32;
108     uint32_t opt_fixed32;
109     bool has_opt_sfixed32;
110     int32_t opt_sfixed32;
111     bool has_opt_float;
112     float opt_float;
113     bool has_opt_fixed64;
114     uint64_t opt_fixed64;
115     bool has_opt_sfixed64;
116     int64_t opt_sfixed64;
117     bool has_opt_double;
118     double opt_double;
119     bool has_opt_string;
120     char opt_string[16];
121     bool has_opt_bytes;
122     AllTypes_opt_bytes_t opt_bytes;
123     bool has_opt_submsg;
124     SubMessage opt_submsg;
125     bool has_opt_enum;
126     MyEnum opt_enum;
127     int32_t end;
128 } AllTypes;
129
130 /* Default values for struct fields */
131 extern const char SubMessage_substuff1_default[17];
132 extern const int32_t SubMessage_substuff2_default;
133 extern const uint32_t SubMessage_substuff3_default;
134 extern const int32_t AllTypes_opt_int32_default;
135 extern const int64_t AllTypes_opt_int64_default;
136 extern const uint32_t AllTypes_opt_uint32_default;
137 extern const uint64_t AllTypes_opt_uint64_default;
138 extern const int32_t AllTypes_opt_sint32_default;
139 extern const int64_t AllTypes_opt_sint64_default;
140 extern const bool AllTypes_opt_bool_default;
141 extern const uint32_t AllTypes_opt_fixed32_default;
142 extern const int32_t AllTypes_opt_sfixed32_default;
143 extern const float AllTypes_opt_float_default;
144 extern const uint64_t AllTypes_opt_fixed64_default;
145 extern const int64_t AllTypes_opt_sfixed64_default;
146 extern const double AllTypes_opt_double_default;
147 extern const char AllTypes_opt_string_default[17];
148 extern const AllTypes_opt_bytes_t AllTypes_opt_bytes_default;
149 extern const MyEnum AllTypes_opt_enum_default;
150
151 /* Struct field encoding specification for nanopb */
152 extern const pb_field_t SubMessage_fields[4];
153 extern const pb_field_t AllTypes_fields[53];
154
155 #endif