A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 70 lines 2.2 kB view raw
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * $Id$ 9 * 10 * Copyright (C) 2007 by Peter D'Hoye 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#ifndef _LIB_HELPER_H_ 22#define _LIB_HELPER_H_ 23 24#include "plugin.h" 25 26#ifndef MAX_BRIGHTNESS_SETTING 27#define MAX_BRIGHTNESS_SETTING 0 28#endif 29#ifndef MIN_BRIGHTNESS_SETTING 30#define MIN_BRIGHTNESS_SETTING 0 31#endif 32#ifndef DEFAULT_BRIGHTNESS_SETTING 33#define DEFAULT_BRIGHTNESS_SETTING 0 34#endif 35 36int talk_val(long n, int unit, bool enqueue); 37 38/** 39 * Backlight on/off operations 40 */ 41void backlight_force_on(void); 42void backlight_ignore_timeout(void); 43void backlight_use_settings(void); 44 45/** 46 * Disable and restore software poweroff (i.e. holding PLAY on iPods). 47 * Only call _restore() if _disable() was called earlier! 48 */ 49void sw_poweroff_disable(void); 50void sw_poweroff_restore(void); 51 52void remote_backlight_force_on(void); 53void remote_backlight_ignore_timeout(void); 54void remote_backlight_use_settings(void); 55 56void buttonlight_force_on(void); 57void buttonlight_force_off(void); 58void buttonlight_ignore_timeout(void); 59void buttonlight_use_settings(void); 60 61/** 62 * Backlight brightness adjustment settings 63 */ 64void backlight_brightness_set(int brightness); 65void backlight_brightness_use_setting(void); 66 67void buttonlight_brightness_set(int brightness); 68void buttonlight_brightness_use_setting(void); 69 70#endif /* _LIB_HELPER_H_ */