|
@@ -24,6 +24,18 @@ func main() {
|
|
|
conn.Export(session, dbus.ObjectPath(path), "dev.aetherial.git.KeychainLinker.Service")
|
|
|
conn.Export(introspect.Introspectable(keychainlinker.DbusAdv), dbus.ObjectPath(path),
|
|
|
"org.freedesktop.DBus.Introspectable")
|
|
|
+ conn.Export(introspect.Introspectable(introspect.Node{
|
|
|
+ Interfaces: []introspect.Interface{
|
|
|
+ introspect.Interface{
|
|
|
+ Name: "org.freedesktop.secret.Servic",
|
|
|
+ Methods: []introspect.Method{
|
|
|
+ {Name: "Get", Args: []introspect.Arg{{Name: "interface_name", Type: "s", Direction: "in"}, {Name: "property_name", Type: "s", Direction: "in"}, {Name: "value", Type: "v", Direction: "out"}}},
|
|
|
+ {Name: "Set", Args: []introspect.Arg{{Name: "interface_name", Type: "s", Direction: "in"}, {Name: "property_name", Type: "s", Direction: "in"}, {Name: "value", Type: "v", Direction: "in"}}},
|
|
|
+ {Name: "GetAll", Args: []introspect.Arg{{Name: "interface_name", Type: "s", Direction: "in"}, {Name: "props", Type: "a{sv}", Direction: "out"}}},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }), "/org/freedesktop/secret", "org.freedesktop.DBus.Introspectable")
|
|
|
|
|
|
reply, err := conn.RequestName("dev.aetherial.git.KeychainLinker.Service",
|
|
|
dbus.NameFlagDoNotQueue)
|