1 [DBus (name = "org.janet.Moonshot")]
2 interface Moonshot : Object {
3 public abstract string[] get_identity (string identity, string username, string password) throws DBus.Error;
8 var conn = DBus.Bus.get (DBus.BusType.SESSION);
9 var demo = (Moonshot) conn.get_object ("org.janet.Moonshot",
10 "/org/janet/moonshot");
12 var text = demo.get_identity ("username@issuer", "pass", "service");
13 stdout.printf ("%s %s %s\n", text[0], text[1], text[2]);
15 } catch (DBus.Error e) {
16 stderr.printf ("%s\n", e.message);