A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 53 lines 2.1 kB view raw
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * $Id$ 9 * 10 * Copyright (C) 2005 by Kevin Ferrare 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 18 * KIND, either express or implied. 19 * 20 ****************************************************************************/ 21 22#ifndef _GUI_SPLASH_H_ 23#define _GUI_SPLASH_H_ 24 25#include "screen_access.h" 26#include "gcc_extensions.h" 27 28/* 29 * Puts a splash message centered on all the screens for a given period 30 * - ticks : how long the splash is displayed (in rb ticks) 31 * - fmt : what to say *printf style 32 */ 33extern void splashf(int ticks, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); 34 35/* 36 * Puts a splash message centered on all the screens for a given period 37 * - ticks : how long the splash is displayed (in rb ticks) 38 * - str : what to say, if this is a LANG_* string (from ID2P) 39 * it will be voiced 40 */ 41#define splash(__ticks, __str) splashf(__ticks, __str) 42 43/* set a delay before displaying the progress meter the first time */ 44extern void splash_progress_set_delay(long delay_ticks); 45/* 46 * Puts a splash message centered on all the screens with a progressbar 47 * - current : current progress increment 48 * - total : total increments 49 * - fmt : what to say *printf style 50 * updates limited internally to 20 fps - call repeatedly to update progress 51 */ 52extern void splash_progress(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); 53#endif /* _GUI_ICON_H_ */