diff options
Diffstat (limited to 'apps/gui/mask_select.h')
-rw-r--r-- | apps/gui/mask_select.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/apps/gui/mask_select.h b/apps/gui/mask_select.h new file mode 100644 index 0000000000..8578133b9c --- /dev/null +++ b/apps/gui/mask_select.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2016 William Wilgus | ||
10 | * Derivative of folder_select.h by: | ||
11 | * Copyright (C) 2011 Jonathan Gordon | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | |||
23 | #ifndef __MASK_SELECT_H__ | ||
24 | #define __MASK_SELECT_H__ | ||
25 | |||
26 | /** | ||
27 | * A GUI browser to select masks on a target | ||
28 | * | ||
29 | * It reads an original mask supplied to function | ||
30 | * and pre-selects the corresponding actions in the UI. If the user is done it | ||
31 | * returns the new mask, assuming the user confirms the yesno dialog. | ||
32 | * | ||
33 | * Returns new mask if the selected options have changed, otherwise | ||
34 | * returns the mask originally supplied */ | ||
35 | struct s_mask_items { | ||
36 | const char* name; | ||
37 | const int bit_value; | ||
38 | }; | ||
39 | int mask_select(int mask, const unsigned char* headermsg, | ||
40 | struct s_mask_items *mask_items, size_t items); | ||
41 | #endif /* __MASK_SELECT_H__ */ | ||