xref: /aosp_15_r20/external/libusb/android/examples/unrooted_android.h (revision 86b64dcb59b3a0b37502ecd56e119234366a6f7e)
1*86b64dcbSAndroid Build Coastguard Worker /*
2*86b64dcbSAndroid Build Coastguard Worker  *  Copyright 2021 Peter Stoiber
3*86b64dcbSAndroid Build Coastguard Worker  *
4*86b64dcbSAndroid Build Coastguard Worker  *  This library is free software; you can redistribute it and/or
5*86b64dcbSAndroid Build Coastguard Worker  *  modify it under the terms of the GNU Lesser General Public
6*86b64dcbSAndroid Build Coastguard Worker  *  License as published by the Free Software Foundation; either
7*86b64dcbSAndroid Build Coastguard Worker  *  version 2.1 of the License, or (at your option) any later version.
8*86b64dcbSAndroid Build Coastguard Worker  *
9*86b64dcbSAndroid Build Coastguard Worker  *  This library is distributed in the hope that it will be useful,
10*86b64dcbSAndroid Build Coastguard Worker  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11*86b64dcbSAndroid Build Coastguard Worker  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12*86b64dcbSAndroid Build Coastguard Worker  *  Lesser General Public License for more details.
13*86b64dcbSAndroid Build Coastguard Worker  *
14*86b64dcbSAndroid Build Coastguard Worker  *  You should have received a copy of the GNU Lesser General Public
15*86b64dcbSAndroid Build Coastguard Worker  *  License along with this library; if not, write to the Free Software
16*86b64dcbSAndroid Build Coastguard Worker  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17*86b64dcbSAndroid Build Coastguard Worker  *
18*86b64dcbSAndroid Build Coastguard Worker  *  Please contact the author if you need another license.
19*86b64dcbSAndroid Build Coastguard Worker  *  This Repository is provided "as is", without warranties of any kind.
20*86b64dcbSAndroid Build Coastguard Worker */
21*86b64dcbSAndroid Build Coastguard Worker 
22*86b64dcbSAndroid Build Coastguard Worker #ifndef unrooted_android_H
23*86b64dcbSAndroid Build Coastguard Worker #define unrooted_android_H
24*86b64dcbSAndroid Build Coastguard Worker 
25*86b64dcbSAndroid Build Coastguard Worker #ifdef __cplusplus
26*86b64dcbSAndroid Build Coastguard Worker extern "C" {
27*86b64dcbSAndroid Build Coastguard Worker #endif
28*86b64dcbSAndroid Build Coastguard Worker 
29*86b64dcbSAndroid Build Coastguard Worker extern int unrooted_usb_description(int fileDescriptor);
30*86b64dcbSAndroid Build Coastguard Worker 
31*86b64dcbSAndroid Build Coastguard Worker #ifdef __cplusplus
32*86b64dcbSAndroid Build Coastguard Worker }
33*86b64dcbSAndroid Build Coastguard Worker #endif
34*86b64dcbSAndroid Build Coastguard Worker 
35*86b64dcbSAndroid Build Coastguard Worker #endif
36*86b64dcbSAndroid Build Coastguard Worker 
37