A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 48 lines 1.5 kB view raw
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * 9 * Copyright (C) 2003 by Benjamin Metzler 10 * 11 * This program is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation; either version 2 14 * of the License, or (at your option) any later version. 15 * 16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 17 * KIND, either express or implied. 18 * 19 ****************************************************************************/ 20 21#ifndef __BOOKMARK_H__ 22#define __BOOKMARK_H__ 23 24#include <stdbool.h> 25 26enum { 27 BOOKMARK_FAIL = -1, 28 BOOKMARK_SUCCESS = 0, 29 BOOKMARK_USB_CONNECTED = 1 30}; 31 32enum { 33 BOOKMARK_CANCEL, 34 BOOKMARK_DONT_RESUME, 35 BOOKMARK_DO_RESUME 36}; 37 38int bookmark_load_menu(void); 39bool bookmark_autobookmark(bool prompt_ok); 40bool bookmark_create_menu(void); 41bool bookmark_mrb_load(void); 42int bookmark_autoload(const char* file); 43bool bookmark_load(const char* file, bool autoload); 44bool bookmark_exists(void); 45bool bookmark_is_bookmarkable_state(void); 46 47#endif /* __BOOKMARK_H__ */ 48