From d6ae93c388bc89a9c3e4ec008dddbed466be01ae Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 5 Sep 2023 19:24:20 +0800 Subject: [PATCH] scf_eda.proto --- scf_eda.pb-c.c | 36 +++++++++++++++++++++++++++++++----- scf_eda.pb-c.h | 4 +++- scf_eda.proto | 4 +++- 3 files changed, 37 insertions(+), 7 deletions(-) diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index 156000f..8419d8c 100644 --- a/scf_eda.pb-c.c +++ b/scf_eda.pb-c.c @@ -747,7 +747,7 @@ const ProtobufCMessageDescriptor scf_econn__descriptor = (ProtobufCMessageInit) scf_econn__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor scf_eline__field_descriptors[12] = +static const ProtobufCFieldDescriptor scf_eline__field_descriptors[14] = { { "id", @@ -882,11 +882,35 @@ static const ProtobufCFieldDescriptor scf_eline__field_descriptors[12] = 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "vflag", + "vconst", 12, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(ScfEline, vconst), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "aconst", + 13, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(ScfEline, aconst), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "vflag", + 14, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ offsetof(ScfEline, vflag), NULL, NULL, @@ -896,6 +920,7 @@ static const ProtobufCFieldDescriptor scf_eline__field_descriptors[12] = }; static const unsigned scf_eline__field_indices_by_name[] = { 9, /* field[9] = a */ + 12, /* field[12] = aconst */ 2, /* field[2] = c_pins */ 5, /* field[5] = conns */ 4, /* field[4] = dfo */ @@ -906,12 +931,13 @@ static const unsigned scf_eline__field_indices_by_name[] = { 6, /* field[6] = lines */ 1, /* field[1] = pins */ 7, /* field[7] = v */ - 11, /* field[11] = vflag */ + 11, /* field[11] = vconst */ + 13, /* field[13] = vflag */ }; static const ProtobufCIntRange scf_eline__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 12 } + { 0, 14 } }; const ProtobufCMessageDescriptor scf_eline__descriptor = { @@ -921,7 +947,7 @@ const ProtobufCMessageDescriptor scf_eline__descriptor = "ScfEline", "", sizeof(ScfEline), - 12, + 14, scf_eline__field_descriptors, scf_eline__field_indices_by_name, 1, scf_eline__number_ranges, diff --git a/scf_eda.pb-c.h b/scf_eda.pb-c.h index 41b1b70..512bf7d 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -103,11 +103,13 @@ struct _ScfEline double jv; double a; double ja; + protobuf_c_boolean vconst; + protobuf_c_boolean aconst; protobuf_c_boolean vflag; }; #define SCF_ELINE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_eline__descriptor) \ - , 0, 0,NULL, 0, 0, 0, 0,NULL, 0,NULL, 0, 0, 0, 0, 0 } + , 0, 0,NULL, 0, 0, 0, 0,NULL, 0,NULL, 0, 0, 0, 0, 0, 0, 0 } struct _ScfEcomponent diff --git a/scf_eda.proto b/scf_eda.proto index f14d7be..2a8aa98 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -60,8 +60,10 @@ message scf_eline required double jv = 9; required double a = 10; required double ja = 11; + required bool vconst = 12; + required bool aconst = 13; - required bool vflag = 12; + required bool vflag = 14; } message scf_ecomponent -- 2.25.1