Currently there are too many globals, which makes it rather unwieldy to use this as a library.
Instead we can create a dedicated class which will contain the socket paths, the processes, etc.
This means that all API points must refer to an instance of that class. Turns out that they already specialize on browser-view, etc., which inherits from remote-object, so all we got to do is add an unexported slot there that contains the instance.
Currently there are too many globals, which makes it rather unwieldy to use this as a library.
Instead we can create a dedicated class which will contain the socket paths, the processes, etc.
This means that all API points must refer to an instance of that class. Turns out that they already specialize on
browser-view
, etc., which inherits fromremote-object
, so all we got to do is add an unexported slot there that contains the instance.