|
@@ -24,10 +24,10 @@ 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{
|
|
|
+ node := introspect.Node{
|
|
|
Interfaces: []introspect.Interface{
|
|
|
- introspect.Interface{
|
|
|
- Name: "org.freedesktop.secret.Servic",
|
|
|
+ {
|
|
|
+ Name: "org.freedesktop.secret.Service",
|
|
|
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"}}},
|
|
@@ -35,7 +35,20 @@ func main() {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- }), "/org/freedesktop/secret", "org.freedesktop.DBus.Introspectable")
|
|
|
+ }
|
|
|
+ conn.Export(introspect.Introspectable(introspect.NewIntrospectable(&node)), "/org/freedesktop/secret", "org.freedesktop.DBus.Introspectable")
|
|
|
+ node = introspect.Node{
|
|
|
+ Interfaces: []introspect.Interface{
|
|
|
+ {
|
|
|
+ Name: "org.freedesktop.secret.Collection",
|
|
|
+ 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"}}},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }
|
|
|
+ conn.Export(introspect.Introspectable(introspect.NewIntrospectable(&node)), "/org/freedesktop/secret", "org.freedesktop.DBus.IntrospectData")
|
|
|
|
|
|
reply, err := conn.RequestName("dev.aetherial.git.KeychainLinker.Service",
|
|
|
dbus.NameFlagDoNotQueue)
|