[DBus (name = "org.example.Test")]
interface Test : Object {
+ public abstract async void test_void () throws IOError;
public abstract async int test_int (int i, out int j) throws IOError;
public abstract async string test_string (string s, out string t) throws IOError;
}
MainLoop main_loop;
async void run (Test test) {
+ yield test.test_void ();
+
int j, k;
k = yield test.test_int (42, out j);
assert (j == 23);
[DBus (name = "org.example.Test")]
class Test : Object {
+ public async void test_void () {
+ Idle.add (test_void.callback);
+ yield;
+ }
+
public async int test_int (int i, out int j) {
assert (i == 42);
Idle.add (test_int.callback);
interface Test : Object {
public abstract string test_property { owned get; set; }
+ public abstract void test_void () throws IOError;
public abstract int test_int (int i, out int j) throws IOError;
public abstract string test_string (string s, out string t) throws IOError;
}
// client
Test test = Bus.get_proxy_sync (BusType.SESSION, "org.example.Test", "/org/example/test");
+ test.test_void ();
+
int j, k;
k = test.test_int (42, out j);
assert (j == 23);
class Test : Object {
public string test_property { owned get; set; }
+ public void test_void () {
+ }
+
public int test_int (int i, out int j) {
assert (i == 42);
j = 23;