From d28b9bdf8a19890c6aa75a136c52face942cd5fc Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 25 Jul 2023 22:09:38 +0800 Subject: [PATCH] scf_eda.proto --- scf_eda.pb-c.c | 19 ++++++++++++++++--- scf_eda.pb-c.h | 3 ++- scf_eda.proto | 1 + 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index 508ea2d..646a1f1 100644 --- a/scf_eda.pb-c.c +++ b/scf_eda.pb-c.c @@ -385,7 +385,7 @@ const ProtobufCMessageDescriptor scf_line__descriptor = (ProtobufCMessageInit) scf_line__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor scf_epin__field_descriptors[11] = +static const ProtobufCFieldDescriptor scf_epin__field_descriptors[12] = { { "id", @@ -519,6 +519,18 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[11] = 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "pflag", + 12, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(ScfEpin, pflag), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned scf_epin__field_indices_by_name[] = { 7, /* field[7] = A */ @@ -528,6 +540,7 @@ static const unsigned scf_epin__field_indices_by_name[] = { 3, /* field[3] = flags */ 0, /* field[0] = id */ 2, /* field[2] = lid */ + 11, /* field[11] = pflag */ 4, /* field[4] = tos */ 10, /* field[10] = vflag */ 8, /* field[8] = x */ @@ -536,7 +549,7 @@ static const unsigned scf_epin__field_indices_by_name[] = { static const ProtobufCIntRange scf_epin__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 11 } + { 0, 12 } }; const ProtobufCMessageDescriptor scf_epin__descriptor = { @@ -546,7 +559,7 @@ const ProtobufCMessageDescriptor scf_epin__descriptor = "ScfEpin", "", sizeof(ScfEpin), - 11, + 12, scf_epin__field_descriptors, scf_epin__field_indices_by_name, 1, scf_epin__number_ranges, diff --git a/scf_eda.pb-c.h b/scf_eda.pb-c.h index b65f07b..96f407f 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -57,10 +57,11 @@ struct _ScfEpin int32_t x; int32_t y; protobuf_c_boolean vflag; + protobuf_c_boolean pflag; }; #define SCF_EPIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_epin__descriptor) \ - , 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0, 0, 0, 0 } struct _ScfEconn diff --git a/scf_eda.proto b/scf_eda.proto index 7a4aabe..b6f6c56 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -23,6 +23,7 @@ message scf_epin required int32 x = 9; required int32 y = 10; required bool vflag = 11; + required bool pflag = 12; } message scf_econn -- 2.25.1