diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-01-30 21:47:09 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-01-30 21:47:09 -0800 |
| commit | 4b5ff500b97cb86a5fbaaf5f3c5f9a004d1334f0 (patch) | |
| tree | bd1db5355acb7edb46294c67fc809036ba07c59f /srv/corvidServer.go | |
| parent | 784ee51b9613cac5764c9a33c343655e514e20f0 (diff) | |
Restructure
Diffstat (limited to 'srv/corvidServer.go')
| -rw-r--r-- | srv/corvidServer.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/srv/corvidServer.go b/srv/corvidServer.go new file mode 100644 index 0000000..4a0556d --- /dev/null +++ b/srv/corvidServer.go @@ -0,0 +1,39 @@ +package srv + +import ( + "log" + + "github.com/godbus/dbus/v5" +) + +type corvidServer server + +func (s corvidServer) Test(param uint32) (e *dbus.Error) { + log.Printf("Test called %d", param) + return nil +} + +// func (s corvidServer) GetCapabilities() (e *dbus.Error) { +// log.Print("GetCapabilities called") +// return nil +// } + +// func (s corvidServer) GetServerInformation() (name, vendor, version, specVersion string, e *dbus.Error) { +// // log.Print("GetServerInformation called") +// return "corvid", "CartConnoisseur", "0.1.0", "1.2", nil +// } + +// func (s corvidServer) CloseNotification(id uint32) (e *dbus.Error) { +// // log.Printf("CloseNotification called: %d", id) +// notification, ok := notifications.notifications[id] +// if ok { +// notification.close(CloseReasonClosed) +// } + +// return nil +// } + +// func (s corvidServer) Notify(appName string, replacesId uint32, appIcon string, summary string, body string, actions []string, hints map[string]dbus.Variant, expireTimeout int32) (id uint32, e *dbus.Error) { +// // log.Print("Notify called") + +// } |