2 using MoonshotRpcInterface;
5 Rpc.client_bind (ref MoonshotRpcInterface.binding_handle, "/org/janet/Moonshot");
7 int pong = ping ("Hello from Vala");
8 stdout.printf ("%d\n", pong);
11 Rpc.AsyncCall call = Rpc.AsyncCall();
12 get_identity (call, "identity", "username", "pass", &id);
17 /* FIXME: this is happening when moonshot crashes instead
18 * of returning a result - surely RpcAsyncCompleteCall should
19 * *tell* us that the call failed !
21 error ("Call failed but error was not raised\n");
23 stdout.printf ("%s %s %s\n", id->identity, id->password, id->service);
25 Rpc.client_unbind (ref MoonshotRpcInterface.binding_handle);