From: yu.dongliang <18588496441@163.com> Date: Thu, 13 Jul 2023 15:05:23 +0000 (+0800) Subject: scf_eda.proto X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=aeed7bf180798776b81507dfe398ad7cb2e82270;p=ses.git scf_eda.proto --- diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index 288e80f..2b509dd 100644 --- a/scf_eda.pb-c.c +++ b/scf_eda.pb-c.c @@ -314,7 +314,7 @@ static const ProtobufCFieldDescriptor scf_line__field_descriptors[4] = "x0", 1, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfLine, x0), NULL, @@ -326,7 +326,7 @@ static const ProtobufCFieldDescriptor scf_line__field_descriptors[4] = "y0", 2, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfLine, y0), NULL, @@ -338,7 +338,7 @@ static const ProtobufCFieldDescriptor scf_line__field_descriptors[4] = "x1", 3, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfLine, x1), NULL, @@ -350,7 +350,7 @@ static const ProtobufCFieldDescriptor scf_line__field_descriptors[4] = "y1", 4, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfLine, y1), NULL, @@ -451,7 +451,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[7] = "x", 6, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEpin, x), NULL, @@ -463,7 +463,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[7] = "y", 7, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEpin, y), NULL, @@ -684,7 +684,7 @@ static const ProtobufCFieldDescriptor scf_ecomponent__field_descriptors[7] = "x", 4, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEcomponent, x), NULL, @@ -696,7 +696,7 @@ static const ProtobufCFieldDescriptor scf_ecomponent__field_descriptors[7] = "y", 5, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEcomponent, y), NULL, @@ -708,7 +708,7 @@ static const ProtobufCFieldDescriptor scf_ecomponent__field_descriptors[7] = "w", 6, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEcomponent, w), NULL, @@ -720,7 +720,7 @@ static const ProtobufCFieldDescriptor scf_ecomponent__field_descriptors[7] = "h", 7, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEcomponent, h), NULL, @@ -800,7 +800,7 @@ static const ProtobufCFieldDescriptor scf_efunction__field_descriptors[7] = "x", 4, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEfunction, x), NULL, @@ -812,7 +812,7 @@ static const ProtobufCFieldDescriptor scf_efunction__field_descriptors[7] = "y", 5, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEfunction, y), NULL, @@ -824,7 +824,7 @@ static const ProtobufCFieldDescriptor scf_efunction__field_descriptors[7] = "w", 6, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEfunction, w), NULL, @@ -836,7 +836,7 @@ static const ProtobufCFieldDescriptor scf_efunction__field_descriptors[7] = "h", 7, PROTOBUF_C_LABEL_REQUIRED, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(ScfEfunction, h), NULL, diff --git a/scf_eda.pb-c.h b/scf_eda.pb-c.h index 0887977..977ddb6 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -32,10 +32,10 @@ typedef struct _ScfEboard ScfEboard; struct _ScfLine { ProtobufCMessage base; - uint32_t x0; - uint32_t y0; - uint32_t x1; - uint32_t y1; + int32_t x0; + int32_t y0; + int32_t x1; + int32_t y1; }; #define SCF_LINE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_line__descriptor) \ @@ -51,8 +51,8 @@ struct _ScfEpin uint64_t cid; uint64_t lid; uint64_t flags; - uint32_t x; - uint32_t y; + int32_t x; + int32_t y; }; #define SCF_EPIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_epin__descriptor) \ @@ -95,10 +95,10 @@ struct _ScfEcomponent uint64_t type; size_t n_pins; ScfEpin **pins; - uint32_t x; - uint32_t y; - uint32_t w; - uint32_t h; + int32_t x; + int32_t y; + int32_t w; + int32_t h; }; #define SCF_ECOMPONENT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_ecomponent__descriptor) \ @@ -113,10 +113,10 @@ struct _ScfEfunction ScfEcomponent **components; size_t n_elines; ScfEline **elines; - uint32_t x; - uint32_t y; - uint32_t w; - uint32_t h; + int32_t x; + int32_t y; + int32_t w; + int32_t h; }; #define SCF_EFUNCTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_efunction__descriptor) \ diff --git a/scf_eda.proto b/scf_eda.proto index 4cb5399..1d4af8d 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -2,10 +2,10 @@ syntax="proto2"; message scf_line { - required uint32 x0 = 1; - required uint32 y0 = 2; - required uint32 x1 = 3; - required uint32 y1 = 4; + required int32 x0 = 1; + required int32 y0 = 2; + required int32 x1 = 3; + required int32 y1 = 4; } message scf_epin @@ -16,8 +16,8 @@ message scf_epin required uint64 lid = 4; required uint64 flags = 5; - required uint32 x = 6; - required uint32 y = 7; + required int32 x = 6; + required int32 y = 7; } message scf_econn @@ -41,10 +41,10 @@ message scf_ecomponent required uint64 type = 2; repeated scf_epin pins = 3; - required uint32 x = 4; - required uint32 y = 5; - required uint32 w = 6; - required uint32 h = 7; + required int32 x = 4; + required int32 y = 5; + required int32 w = 6; + required int32 h = 7; } message scf_efunction @@ -53,10 +53,10 @@ message scf_efunction repeated scf_ecomponent components = 2; repeated scf_eline elines = 3; - required uint32 x = 4; - required uint32 y = 5; - required uint32 w = 6; - required uint32 h = 7; + required int32 x = 4; + required int32 y = 5; + required int32 w = 6; + required int32 h = 7; } message scf_eboard