buttons extension + config memory leak & external allocation

This commit is contained in:
philippe44
2020-01-14 23:29:19 -08:00
parent ccf214fbe2
commit f8b5d856a3
6 changed files with 68 additions and 14 deletions

View File

@@ -33,4 +33,6 @@ set shifter_gpio to -1 for no shift
NOTE: shifter buttons *must* be created before shiftee
*/
void button_create(void *id, int gpio, int type, bool pull, int debounce, button_handler handler, int long_press, int shifter_gpio);
void button_create(void *client, int gpio, int type, bool pull, int debounce, button_handler handler, int long_press, int shifter_gpio);
void *button_remap(void *client, int gpio, button_handler handler, int long_press, int shifter_gpio);
void button_get_client(int gpio);