1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2010 by Thomas Martitz
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __SYSTEM_TARGET_H__
23 #define __SYSTEM_TARGET_H__
25 #include "kernel-unix.h"
26 #include "system-hosted.h"
28 /* don't pull in jni.h for every user of this file, it should be only needed
29 * within the target tree (if at all)
30 * define this before #including system.h or system-target.h */
31 #ifdef _SYSTEM_WITH_JNI
34 * discover the JNIEnv for this the calling thread in case it's not known */
35 extern JNIEnv
* getJavaEnvironment(void);
36 #endif /* _SYSTEM_WITH_JNI */
38 #endif /* __SYSTEM_TARGET_H__ */
40 /* facility function to check/wait for rockbox being ready, to be used
41 * by java calls into native that depend on Rockbox structures such as
42 * initialized kernel. */
43 bool is_rockbox_ready(void);
44 void wait_rockbox_ready(void);
45 void set_rockbox_ready(void);
47 #define NEED_GENERIC_BYTESWAPS