2007-08-13 22:31:11 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2007-08-13 22:37:44 +00:00
|
|
|
* $Id$
|
2007-08-13 22:31:11 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2007 by Peter D'Hoye
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-08-13 22:31:11 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _LIB_HELPER_H_
|
|
|
|
#define _LIB_HELPER_H_
|
|
|
|
|
|
|
|
#include "plugin.h"
|
|
|
|
|
2021-08-19 01:30:13 +00:00
|
|
|
int talk_val(long n, int unit, bool enqueue);
|
|
|
|
|
2007-08-13 22:31:11 +00:00
|
|
|
/**
|
|
|
|
* Backlight on/off operations
|
|
|
|
*/
|
2009-01-16 10:34:40 +00:00
|
|
|
void backlight_force_on(void);
|
2011-01-24 12:29:16 +00:00
|
|
|
void backlight_ignore_timeout(void);
|
2009-01-16 10:34:40 +00:00
|
|
|
void backlight_use_settings(void);
|
2020-06-27 00:53:15 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_SW_POWEROFF
|
|
|
|
/**
|
|
|
|
* Disable and restore software poweroff (i.e. holding PLAY on iPods).
|
|
|
|
* Only call _restore() if _disable() was called earlier!
|
|
|
|
*/
|
|
|
|
void sw_poweroff_disable(void);
|
|
|
|
void sw_poweroff_restore(void);
|
|
|
|
#endif
|
|
|
|
|
2007-11-29 23:55:58 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2009-01-16 10:34:40 +00:00
|
|
|
void remote_backlight_force_on(void);
|
2011-01-24 12:29:16 +00:00
|
|
|
void remote_backlight_ignore_timeout(void);
|
2009-01-16 10:34:40 +00:00
|
|
|
void remote_backlight_use_settings(void);
|
2007-11-29 23:55:58 +00:00
|
|
|
#endif
|
2010-11-01 13:37:00 +00:00
|
|
|
|
2008-05-08 21:23:31 +00:00
|
|
|
#ifdef HAVE_BUTTON_LIGHT
|
2009-01-16 10:34:40 +00:00
|
|
|
void buttonlight_force_on(void);
|
2015-02-22 11:22:40 +00:00
|
|
|
void buttonlight_force_off(void);
|
2011-01-24 12:29:16 +00:00
|
|
|
void buttonlight_ignore_timeout(void);
|
2009-01-16 10:34:40 +00:00
|
|
|
void buttonlight_use_settings(void);
|
2008-05-08 21:23:31 +00:00
|
|
|
#endif
|
2008-05-18 00:14:34 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Backlight brightness adjustment settings
|
|
|
|
*/
|
|
|
|
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
2009-01-16 10:34:40 +00:00
|
|
|
void backlight_brightness_set(int brightness);
|
|
|
|
void backlight_brightness_use_setting(void);
|
2007-08-13 22:31:11 +00:00
|
|
|
#endif
|
2008-05-18 00:14:34 +00:00
|
|
|
|
2010-11-01 13:37:00 +00:00
|
|
|
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
|
|
|
|
void buttonlight_brightness_set(int brightness);
|
|
|
|
void buttonlight_brightness_use_setting(void);
|
|
|
|
#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
|
2008-05-18 00:14:34 +00:00
|
|
|
|
|
|
|
#endif /* _LIB_HELPER_H_ */
|