Dear folks,
this is a little patch to allow me to emit a dbus signal via the
following code:
--------------
[DBus (name = "org.gnome.TestServer")]
public class TestServer : GLib.Object {
int64 counter;
public signal void event(string msg);
public int64 ping (string msg) {
message (msg);
return counter++;
}
}
void some_func(TestServer server) {
/*suppose server is already registered on the dbus*/
server.event("a big event");
}
----------------
I am quite new to vala, looking forward to write a dbus service with
vala. However my service needs signal emission.
I will be very glad if the patch can be accepted and appears in the next
vala release.
Regards,
Yu
Attachment:
dbus-signals.patch
Description: Text Data