Replace "type" with "slaveHandler" callback inside bridge_slave_t.

This commit is contained in:
László Monda
2017-03-17 01:57:49 +01:00
parent d9ffdb6bb3
commit 38d3da05a4
2 changed files with 9 additions and 11 deletions
+3 -1
View File
@@ -13,9 +13,11 @@
BridgeSlaveType_Touchpad
} bridge_slave_type_t;
typedef bool (slave_handler_t)(uint8_t);
typedef struct {
uint8_t moduleId; // This is a unique, per-module ID.
bridge_slave_type_t type;
slave_handler_t *slaveHandler;
bool isConnected;
} bridge_slave_t;