@tintou's comments here:
I'm not really a fan of passing structs via a socket, you can also use D-Bus over a socket instead which would make it look better for inter-process communication.
for an example on how to do it, it's what I've done for switchboard:
https://github.com/elementary/applications-menu/blob/master/src/synapse-plugins/worker-link.vala
https://github.com/elementary/applications-menu/blob/master/src/synapse-plugins/switchboard-plugin.vala
https://github.com/elementary/applications-menu/blob/master/src/synapse-plugins/switchboard-plugin/plugin.vala
This could be an interesting addition, specially to make easier from higher level languages that don't have access to the big variety of ints C++ has or that might align memory in a different way, like JS.
I'll look into this, but with low priority.
I just finished the implementation upstream: https://github.com/JoseExposito/touchegg/issues/436
As soon as I figure out how D-Bus works in Vala, I'll do my best to port it.
@JoseExposito looking at your implementation using only signals it should be pretty forward:
If I can help you in any way, let me know :)
Most helpful comment
I just finished the implementation upstream: https://github.com/JoseExposito/touchegg/issues/436
As soon as I figure out how D-Bus works in Vala, I'll do my best to port it.