// Currently not static, as we inject the default action handler static struct button_def button_defs[] = { { .name = "fsg-connect", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_connect_methode1 }, { .ms = 2000 }, { .ms = 6000, .down = avm_event_push_button_connect_methode6, .up = avm_event_push_button_connect_methode6 }, { .ms = 15000, .up = avm_event_push_button_power_set_factory_kernel, .flags = BUTTON_FLAG_IGNORE_LOCK }, ) }, { .name = "repeater-connect", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_connect_methode3 }, { .ms = 2000 }, { .ms = 6000, .down = avm_event_push_button_connect_methode6, .up = avm_event_push_button_connect_methode6 }, { .ms = 15000, .up = avm_event_push_button_power_set_factory_kernel, .flags = BUTTON_FLAG_IGNORE_LOCK }, ) }, { .name = "plc-connect", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_connect_methode2 }, { .ms = 2000 }, { .ms = 6000, .down = avm_event_push_button_connect_methode6, .up = avm_event_push_button_connect_methode6 }, { .ms = 15000, .up = avm_event_push_button_power_set_factory_kernel, .flags = BUTTON_FLAG_IGNORE_LOCK }, ) }, { .name = "repeater-wps", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_connect_methode2 }, { .ms = 2000 }, { .ms = 6000, .down = avm_event_push_button_connect_methode6, .up = avm_event_push_button_connect_methode6 }, { .ms = 15000, .up = avm_event_push_button_power_set_factory_kernel, .flags = BUTTON_FLAG_IGNORE_LOCK | BUTTON_FLAG_MULTI }, ) }, { .name = "repeater-plc", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_connect_methode5 }, { .ms = 15000, .up = avm_event_push_button_power_set_factory_kernel, .flags = BUTTON_FLAG_IGNORE_LOCK | BUTTON_FLAG_MULTI }, ) }, { .name = "box-wlan", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_wlan_on_off }, { .ms = 2000 }, { .ms = 6000, .up = avm_event_push_button_connect_methode4 }, // TODO: nexus slave ) }, { .name = "box-fon", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_dect_paging }, { .ms = 2000 }, { .ms = 6000, .up = avm_event_push_button_dect_pairing }, ) }, { .name = "box-connect", .actions = BUTTON_ACTIONS( { .ms = 100, .up = avm_event_push_button_connect_methode1 }, ) }, { .name = "dummy", .actions = BUTTON_ACTIONS( { .ms = 100 }, ) }, };