PipeTap/src/dbus.vala
Vasiliy Doylov 2bb70d5fd7
DBUS: Add WIP dbus functionality
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
2025-06-06 23:46:44 +03:00

14 lines
581 B
Vala

namespace PipeTap.DBus {
public class Server : ServerIface, Object {
public int focus {
get { message ("Gett"); return Logic.find_ctrl (Logic.Ctrl.CtrlType.Focus).value; }
set { message ("Sett %d", value); Logic.find_ctrl (Logic.Ctrl.CtrlType.Focus).value = value; }
}
}
public Server server;
public void init (GLib.DBusConnection conn, string path) {
server = new Server ();
message ("DBUS connection is %snull", conn != null ? "not " : "");
conn.register_object<ServerIface> (path, server);
}
}