dbus: Remove some debug code
[moonshot-ui.git] / src / dbus-client.vala
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;
4 }
5
6 void main () {
7     try {
8         var conn = DBus.Bus.get (DBus.BusType.SESSION);
9         var demo = (Moonshot) conn.get_object ("org.janet.Moonshot",
10                                                "/org/janet/moonshot");
11
12         var text = demo.get_identity ("username@issuer", "pass", "service");
13         stdout.printf ("%s %s %s\n", text[0], text[1], text[2]);
14
15     } catch (DBus.Error e) {
16         stderr.printf ("%s\n", e.message);
17     }
18 }