mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

This patch adds the interface for the Gonk sensors daemon. There are only two major interfaces: connect and disconnect. The sensors daemon is started before connecting and stopped after a disconnect. Connections are race-free: we first set up a listen socket and let Gecko listen for connections. Then the daemon gets started with the socket's address as parameter. When the daemon connects to the socket, Gecko will continue the startup and signal success to the caller.