diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 12:52:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 12:52:25 -0600 |
| commit | ebb03139bb875cef38dbaff1aaaf5a546ff1ce1a (patch) | |
| tree | 4db5a5c4b0bc6294308fe983a428a23c733538ce | |
| parent | 4695ada40934806b4323400e0c6135c1c7d9c435 (diff) | |
can't use protobuf in a plugin yetv0.22.16
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | view.proto | 42 | ||||
| -rw-r--r-- | view.proto.new | 44 |
3 files changed, 45 insertions, 42 deletions
@@ -46,3 +46,4 @@ redomod: proto: autogenpb --proto view.proto + make goimports diff --git a/view.proto b/view.proto deleted file mode 100644 index 537ffa2..0000000 --- a/view.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; - -package main; - -import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp - -// maybe put all the gocui specific stuff here. -message GocuiState { // `autogenpb:nomutex` - bool visible = 1; - bool internal = 2; - int64 w0 = 3; - int64 h0 = 4; - int64 w1 = 5; - int64 h1 = 6; -} - -message ViewSettings { // `autogenpb:nomutex` - bool pack = 1; - int64 framesize = 5; -} - -message Tree { - View parent = 1; - repeated View children = 2; - View node = 3; -} - -// this is the gocui 'view' in binary tree form -message View { - int64 widgetId = 3; // `autogenpb:unique` `autogenpb:sort` - string name = 4; // `autogenpb:unique` `autogenpb:sort` - GocuiState state = 7; -} - -message Views { // `autogenpb:marshal` `autogenpb:mutex` - string uuid = 1; // `autogenpb:uuid:d19c1fbb-32c2-4957-aee6-f8128a511dca` - string version = 2; // `autogenpb:version:v0.0.1` - repeated View Views = 3; - Tree tree = 4; - map<string, string> junk = 5; - ViewSettings settings = 6; -} diff --git a/view.proto.new b/view.proto.new new file mode 100644 index 0000000..dd2f708 --- /dev/null +++ b/view.proto.new @@ -0,0 +1,44 @@ +syntax = "proto3"; + +// including this in a plugin seems to keep it from loading at this point + +package main; + +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +// maybe put all the gocui specific stuff here. +message GocuiState { // `autogenpb:nomutex` + bool visible = 1; + bool internal = 2; + int64 w0 = 3; + int64 h0 = 4; + int64 w1 = 5; + int64 h1 = 6; +} + +message ViewSettings { // `autogenpb:nomutex` + bool pack = 1; + int64 framesize = 5; +} + +message Tree { + View parent = 1; + repeated View children = 2; + View node = 3; +} + +// this is the gocui 'view' in binary tree form +message View { + int64 widgetId = 3; // `autogenpb:unique` `autogenpb:sort` + string name = 4; // `autogenpb:unique` `autogenpb:sort` + GocuiState state = 7; +} + +message Views { // `autogenpb:marshal` `autogenpb:mutex` + string uuid = 1; // `autogenpb:uuid:d19c1fbb-32c2-4957-aee6-f8128a511dca` + string version = 2; // `autogenpb:version:v0.0.1` + repeated View Views = 3; + Tree tree = 4; + map<string, string> junk = 5; + ViewSettings settings = 6; +} |
