A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 59 lines 2.0 kB view raw
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * $Id$ 9 * 10 * Copyright (C) 2002 by Alan Korr 11 * Copyright (C) 2008 by Frank Gevaerts 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#ifndef __RAMDISK_H__ 23#define __RAMDISK_H__ 24 25#include <stdbool.h> 26#include "config.h" 27#include "mv.h" /* for HAVE_MULTIDRIVE or not */ 28 29struct storage_info; 30 31void ramdisk_enable(bool on); 32void ramdisk_spindown(int seconds); 33void ramdisk_sleep(void); 34bool ramdisk_disk_is_active(void); 35int ramdisk_soft_reset(void); 36int ramdisk_init(void) STORAGE_INIT_ATTR; 37void ramdisk_close(void); 38int ramdisk_read_sectors(IF_MD(int drive,) sector_t start, int count, void* buf); 39int ramdisk_write_sectors(IF_MD(int drive,) sector_t start, int count, const void* buf); 40void ramdisk_spin(void); 41void ramdisk_sleepnow(void); 42int ramdisk_spinup_time(void); 43 44#ifdef STORAGE_GET_INFO 45void ramdisk_get_info(IF_MD(int drive,) struct storage_info *info); 46#endif 47 48long ramdisk_last_disk_activity(void); 49 50#ifdef CONFIG_STORAGE_MULTI 51int ramdisk_num_drives(int first_drive); 52#endif 53 54#ifdef HAVE_HOTSWAP 55bool ramdisk_removable(IF_MD(int drive)); 56bool ramdisk_present(IF_MD(int drive)); 57#endif 58 59#endif