aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/control.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/notify/control.go')
-rw-r--r--internal/notify/control.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/notify/control.go b/internal/notify/control.go
new file mode 100644
index 0000000..4783711
--- /dev/null
+++ b/internal/notify/control.go
@@ -0,0 +1,24 @@
+// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+package notify
+
+import "github.com/godbus/dbus/v5"
+
+// control is the private interface notifyctl drives.
+type control struct {
+ svc *Service
+}
+
+func (c *control) CloseAll() *dbus.Error {
+ c.svc.store.DismissAll()
+ return nil
+}