From eea1747f448471d86e0aac0cee5054e7dbc8d6e0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Mar 2025 12:40:14 -0600 Subject: next step, fix autogenpb --- machine.proto | 1 + machine.test.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/machine.proto b/machine.proto index fe30812..f356f77 100644 --- a/machine.proto +++ b/machine.proto @@ -19,6 +19,7 @@ message Machine { // `autogenpb:marshal` Packages wit = 9; // packages that are available from mirrors.wit.com string userAgent = 10; string uuid = 11; + // func(string) blah = 12; } message Machines { // `autogenpb:marshal` `autogenpb:gui` diff --git a/machine.test.go b/machine.test.go index 37ccdc8..52f7b56 100644 --- a/machine.test.go +++ b/machine.test.go @@ -7,6 +7,14 @@ import ( "go.wit.com/log" ) +func (mt *MachinesTable) lookupWidgetId(id int) { + log.Info("no shit. got to lookupWidgdetId() id =", id, "on mt", mt.GetUuid()) +} + +func (mt *MachinesTable) Custom(f func(int)) { + mt.pb.RegisterCustom(mt.lookupWidgetId) +} + func (mt *MachinesTable) Delete() { if mt == nil { log.Info("mt == nil table already deleted") -- cgit v1.2.3