diff options
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") + +// } |