summaryrefslogtreecommitdiff
path: root/apps/bookmark.h
diff options
context:
space:
mode:
authorOsborne Jacobs <ozziejacks@gmail.com>2012-03-11 00:47:28 -0500
committerJonathan Gordon <rockbox@jdgordon.info>2012-03-12 08:54:02 +0100
commitfb30d013729f5dc8f256b6d5269f65e4b864d47c (patch)
tree7332e12902aa1b8cb92a4d83e61b9b23fcd34b85 /apps/bookmark.h
parent16a95618de709caeca45a34f2649d6cfd6a66d5f (diff)
downloadrockbox-fb30d013729f5dc8f256b6d5269f65e4b864d47c.tar.gz
rockbox-fb30d013729f5dc8f256b6d5269f65e4b864d47c.zip
Fix minor bookmark problems/Enhance bookmark functions
This fix: -fixes when the bookmark menu and submenus are displayed and hidden in the context menu. -'Create Bookmark' should be hidden when tracks are queued in the playlist or nothing is currently playing (previously it was never hidden) -'List Bookmarks' should be hidden if and only if no bookmark file exists for the current playlist (previously it was hidden if tracks were queued or nothing was playing neither of which hinder loading bookmarks) -'Bookmarks' main menu should be hidden if both 'Create Bookmarks' and 'List Bookmarks' submenus are hidden -fixes a problem where the 'Bookmark Error' message was not always displayed on bookmarking failure -adds BOOKMARK_USB_CONNECTED return value to the bookmark functions to distinguish if the bookmark list was exited due to a USB connection. -fixes other minor logic problems in the bookmarking functions Change-Id: If6394b2e77f027773a7c94ffdcb52dbb15e2922b Reviewed-on: http://gerrit.rockbox.org/177 Reviewed-by: Osborne Jacobs <ozziejacks@gmail.com> Tested-by: Osborne Jacobs <ozziejacks@gmail.com> Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Diffstat (limited to 'apps/bookmark.h')
-rw-r--r--apps/bookmark.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/bookmark.h b/apps/bookmark.h
index 4b61edba9b..ff7b87c1bf 100644
--- a/apps/bookmark.h
+++ b/apps/bookmark.h
@@ -23,13 +23,20 @@
23 23
24#include <stdbool.h> 24#include <stdbool.h>
25 25
26bool bookmark_load_menu(void); 26enum {
27 BOOKMARK_FAIL = -1,
28 BOOKMARK_SUCCESS = 0,
29 BOOKMARK_USB_CONNECTED = 1
30};
31
32int bookmark_load_menu(void);
27bool bookmark_autobookmark(bool prompt_ok); 33bool bookmark_autobookmark(bool prompt_ok);
28bool bookmark_create_menu(void); 34bool bookmark_create_menu(void);
29bool bookmark_mrb_load(void); 35bool bookmark_mrb_load(void);
30bool bookmark_autoload(const char* file); 36bool bookmark_autoload(const char* file);
31bool bookmark_load(const char* file, bool autoload); 37bool bookmark_load(const char* file, bool autoload);
32bool bookmark_exists(void); 38bool bookmark_exists(void);
39bool bookmark_is_bookmarkable_state(void);
33 40
34#endif /* __BOOKMARK_H__ */ 41#endif /* __BOOKMARK_H__ */
35 42