1 /*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 // Autogenerated by the ProtoZero C compiler plugin.
18 // Invoked by tools/gen_c_protos
19 // DO NOT EDIT.
20 #ifndef SRC_SHARED_LIB_TEST_PROTOS_SUBPACKAGE_TEST_MESSAGES_PZC_H_
21 #define SRC_SHARED_LIB_TEST_PROTOS_SUBPACKAGE_TEST_MESSAGES_PZC_H_
22
23 #include <stdbool.h>
24 #include <stdint.h>
25
26 #include "perfetto/public/pb_macros.h"
27
28 PERFETTO_PB_MSG_DECL(protozero_test_protos_subpackage_Message_NestedMessage);
29
PERFETTO_PB_ENUM(protozero_test_protos_subpackage_Enum)30 PERFETTO_PB_ENUM(protozero_test_protos_subpackage_Enum){
31 PERFETTO_PB_ENUM_ENTRY(protozero_test_protos_subpackage_A) = 1,
32 PERFETTO_PB_ENUM_ENTRY(protozero_test_protos_subpackage_B) = 2,
33 };
34
PERFETTO_PB_ENUM_IN_MSG(protozero_test_protos_subpackage_Message,NestedEnum)35 PERFETTO_PB_ENUM_IN_MSG(protozero_test_protos_subpackage_Message, NestedEnum){
36 PERFETTO_PB_ENUM_IN_MSG_ENTRY(protozero_test_protos_subpackage_Message,
37 C) = 3,
38 PERFETTO_PB_ENUM_IN_MSG_ENTRY(protozero_test_protos_subpackage_Message,
39 D) = 4,
40 };
41
42 PERFETTO_PB_MSG(protozero_test_protos_subpackage_Message);
43 PERFETTO_PB_FIELD(protozero_test_protos_subpackage_Message,
44 VARINT,
45 int32_t,
46 field_int32,
47 1);
48 PERFETTO_PB_FIELD(protozero_test_protos_subpackage_Message,
49 VARINT,
50 enum protozero_test_protos_subpackage_Enum,
51 field_enum,
52 2);
53 PERFETTO_PB_FIELD(protozero_test_protos_subpackage_Message,
54 VARINT,
55 enum protozero_test_protos_subpackage_Message_NestedEnum,
56 field_nested_enum,
57 3);
58 PERFETTO_PB_FIELD(protozero_test_protos_subpackage_Message,
59 MSG,
60 protozero_test_protos_subpackage_Message_NestedMessage,
61 field_nested_message,
62 4);
63
64 PERFETTO_PB_MSG(protozero_test_protos_subpackage_Message_NestedMessage);
65 PERFETTO_PB_FIELD(protozero_test_protos_subpackage_Message_NestedMessage,
66 VARINT,
67 int32_t,
68 field_int32,
69 1);
70
71 #endif // SRC_SHARED_LIB_TEST_PROTOS_SUBPACKAGE_TEST_MESSAGES_PZC_H_
72