Oops, correctly calculate the interrupt number in UIE().
[Rockbox.git] / apps / bookmark.h
blob8e8f6b684a892f9e48479458f809bf119451c55c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2003 by Benjamin Metzler
11 * All files in this archive are subject to the GNU General Public License.
12 * See the file COPYING in the source tree root for full license agreement.
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
17 ****************************************************************************/
19 #ifndef __BOOKMARK_H__
20 #define __BOOKMARK_H__
22 #include <stdbool.h>
24 #if CONFIG_KEYPAD == ONDIO_PAD
25 #define BOOKMARK_SELECT_PRE BUTTON_RIGHT
26 #define BOOKMARK_SELECT (BUTTON_RIGHT | BUTTON_REL)
27 #define BOOKMARK_DELETE (BUTTON_RIGHT | BUTTON_REPEAT)
28 #define BOOKMARK_DOWN BUTTON_DOWN
30 #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
31 (CONFIG_KEYPAD == IRIVER_H300_PAD)
32 #define BOOKMARK_SELECT BUTTON_SELECT
33 #define BOOKMARK_DELETE (BUTTON_ON | BUTTON_SELECT)
34 #define BOOKMARK_DOWN BUTTON_DOWN
36 #elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD)
37 #define BOOKMARK_SELECT BUTTON_SELECT
38 #define BOOKMARK_DELETE (BUTTON_RIGHT | BUTTON_REPEAT)
39 #define BOOKMARK_DOWN BUTTON_SCROLL_FWD
41 #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
42 #define BOOKMARK_SELECT BUTTON_SELECT
43 #define BOOKMARK_DELETE (BUTTON_PLAY | BUTTON_SELECT)
44 #define BOOKMARK_DOWN BUTTON_DOWN
46 #elif CONFIG_KEYPAD == IAUDIO_X5_PAD
47 #define BOOKMARK_SELECT BUTTON_SELECT
48 #define BOOKMARK_DELETE BUTTON_REC | BUTTON_REPEAT
49 #define BOOKMARK_DOWN BUTTON_DOWN
51 #elif CONFIG_KEYPAD == GIGABEAT_PAD
52 #define BOOKMARK_SELECT BUTTON_MENU
53 #define BOOKMARK_DELETE BUTTON_POWER
54 #define BOOKMARK_DOWN BUTTON_A
56 #else /* player, recorder, gmini */
57 #define BOOKMARK_SELECT BUTTON_PLAY
58 #define BOOKMARK_DELETE (BUTTON_ON | BUTTON_PLAY)
59 #define BOOKMARK_DOWN BUTTON_DOWN
61 #endif
63 bool bookmark_load_menu(void);
64 bool bookmark_autobookmark(void);
65 bool bookmark_create_menu(void);
66 bool bookmark_mrb_load(void);
67 bool bookmark_autoload(const char* file);
68 bool bookmark_load(const char* file, bool autoload);
69 void bookmark_play(char* resume_file, int index, int offset, int seed,
70 char *filename);
71 bool bookmark_exist(void);
73 #endif /* __BOOKMARK_H__ */