mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-19 21:04:29 +01:00
Initialize controller in two steps
There is a dependency cycle in the initialization order: - keyboard depends on controller - controller depends on acksync - acksync depends on keyboard initialization To break this cycle, bind the async instance to the controller in a second step.
This commit is contained in:
@@ -25,8 +25,11 @@ struct sc_controller {
|
||||
};
|
||||
|
||||
bool
|
||||
sc_controller_init(struct sc_controller *controller, sc_socket control_socket,
|
||||
struct sc_acksync *acksync);
|
||||
sc_controller_init(struct sc_controller *controller, sc_socket control_socket);
|
||||
|
||||
void
|
||||
sc_controller_set_acksync(struct sc_controller *controller,
|
||||
struct sc_acksync *acksync);
|
||||
|
||||
void
|
||||
sc_controller_destroy(struct sc_controller *controller);
|
||||
|
||||
Reference in New Issue
Block a user