mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
Required for dynamic inputs (like bluetooth). Files are now opened with O_NONBLOCK, and inputs are automatically removed on poll errors. Also added call to close all devices on power off. Change-Id: I8991bdb881fdc00135d1fd5b01ac900c0b007aeb
28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/***************************************************************************
|
|
* __________ __ ___
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
* \/ \/ \/ \/ \/
|
|
*
|
|
* Copyright (C) 2026 by Roman Artiukhin
|
|
*
|
|
* 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.
|
|
*
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
* KIND, either express or implied.
|
|
****************************************************************************/
|
|
|
|
|
|
#ifndef __BUTTON_DEVINPUT_H__
|
|
#define __BUTTON_DEVINPUT_H__
|
|
|
|
void button_close_device(void);
|
|
void button_add_input_device(int i);
|
|
void button_remove_input_device(int i);
|
|
|
|
#endif
|