From b6a321057e39b1f3e927a232a1147299ed376f8d Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 20 Jul 2023 11:24:01 +0800 Subject: [PATCH] scf_eda.proto --- scf_eda.pb-c.c | 44 +++++++++++++++++++++++++++++++++++--------- scf_eda.pb-c.h | 4 +++- scf_eda.proto | 9 ++++++--- 3 files changed, 44 insertions(+), 13 deletions(-) diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index cfd953a..dcbce1e 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[9] = +static const ProtobufCFieldDescriptor scf_epin__field_descriptors[11] = { { "id", @@ -460,9 +460,33 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[9] = 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "x", + "V", 7, PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_DOUBLE, + 0, /* quantifier_offset */ + offsetof(ScfEpin, v), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "A", + 8, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_DOUBLE, + 0, /* quantifier_offset */ + offsetof(ScfEpin, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "x", + 9, + PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEpin, x), @@ -473,7 +497,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[9] = }, { "y", - 8, + 10, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ @@ -485,7 +509,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[9] = }, { "vflag", - 9, + 11, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -497,20 +521,22 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[9] = }, }; static const unsigned scf_epin__field_indices_by_name[] = { + 7, /* field[7] = A */ + 6, /* field[6] = V */ 5, /* field[5] = c_tos */ 1, /* field[1] = cid */ 3, /* field[3] = flags */ 0, /* field[0] = id */ 2, /* field[2] = lid */ 4, /* field[4] = tos */ - 8, /* field[8] = vflag */ - 6, /* field[6] = x */ - 7, /* field[7] = y */ + 10, /* field[10] = vflag */ + 8, /* field[8] = x */ + 9, /* field[9] = y */ }; static const ProtobufCIntRange scf_epin__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 9 } + { 0, 11 } }; const ProtobufCMessageDescriptor scf_epin__descriptor = { @@ -520,7 +546,7 @@ const ProtobufCMessageDescriptor scf_epin__descriptor = "ScfEpin", "", sizeof(ScfEpin), - 9, + 11, 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 a994154..76f38a8 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -52,13 +52,15 @@ struct _ScfEpin size_t n_tos; uint64_t *tos; uint64_t c_tos; + double v; + double a; int32_t x; int32_t y; protobuf_c_boolean vflag; }; #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,NULL, 0, 0, 0, 0, 0, 0 } struct _ScfEconn diff --git a/scf_eda.proto b/scf_eda.proto index e7e6459..26d7338 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -17,9 +17,12 @@ message scf_epin repeated uint64 tos = 5; required uint64 c_tos = 6; - required int32 x = 7; - required int32 y = 8; - required bool vflag = 9; + required double V = 7; + required double A = 8; + + required int32 x = 9; + required int32 y = 10; + required bool vflag = 11; } message scf_econn -- 2.25.1