summaryrefslogtreecommitdiff
path: root/apps/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/action.c b/apps/action.c
index 07d3cb25a2..30eccb8d81 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -29,22 +29,22 @@
29#include "debug.h" 29#include "debug.h"
30#include "splash.h" 30#include "splash.h"
31 31
32bool ignore_until_release = false; 32static bool ignore_until_release = false;
33int last_button = BUTTON_NONE; 33static int last_button = BUTTON_NONE;
34 34
35/* software keylock stuff */ 35/* software keylock stuff */
36#ifndef HAS_BUTTON_HOLD 36#ifndef HAS_BUTTON_HOLD
37bool keys_locked = false; 37static bool keys_locked = false;
38int unlock_combo = BUTTON_NONE; 38static int unlock_combo = BUTTON_NONE;
39bool screen_has_lock = false; 39static bool screen_has_lock = false;
40#endif /* HAVE_SOFTWARE_KEYLOCK */ 40#endif /* HAVE_SOFTWARE_KEYLOCK */
41 41
42/* 42/*
43 * do_button_check is the worker function for get_default_action. 43 * do_button_check is the worker function for get_default_action.
44 * returns ACTION_UNKNOWN or the requested return value from the list. 44 * returns ACTION_UNKNOWN or the requested return value from the list.
45 */ 45 */
46inline int do_button_check(const struct button_mapping *items, 46static inline int do_button_check(const struct button_mapping *items,
47 int button, int last_button, int *start) 47 int button, int last_button, int *start)
48{ 48{
49 int i = 0; 49 int i = 0;
50 int ret = ACTION_UNKNOWN; 50 int ret = ACTION_UNKNOWN;
@@ -68,7 +68,7 @@ inline int do_button_check(const struct button_mapping *items,
68 return ret; 68 return ret;
69} 69}
70 70
71inline int get_next_context(const struct button_mapping *items, int i) 71static inline int get_next_context(const struct button_mapping *items, int i)
72{ 72{
73 while (items[i].button_code != BUTTON_NONE) 73 while (items[i].button_code != BUTTON_NONE)
74 i++; 74 i++;
@@ -92,8 +92,8 @@ inline int get_next_context(const struct button_mapping *items, int i)
92Any number >0 to wait that many ticks for a press 92Any number >0 to wait that many ticks for a press
93 93
94 */ 94 */
95int get_action_worker(int context, int timeout, 95static int get_action_worker(int context, int timeout,
96 const struct button_mapping* (*get_context_map)(int) ) 96 const struct button_mapping* (*get_context_map)(int) )
97{ 97{
98 const struct button_mapping *items = NULL; 98 const struct button_mapping *items = NULL;
99 int button; 99 int button;