-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added file required for logging on android
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* dstep -I/path/to/ndk-r9d/toolchains/llvm-3.4/prebuilt/linux-x86/lib/clang/3.4/include /path/to/ndk-r9d/platforms/android-9/arch-x86/usr/include/android/log.h -o log.d*/ | ||
|
||
module android.log; | ||
|
||
import core.stdc.stdarg; | ||
|
||
version (Android): | ||
extern (C): | ||
@system: | ||
nothrow: | ||
@nogc: | ||
|
||
enum android_LogPriority | ||
{ | ||
ANDROID_LOG_UNKNOWN, | ||
ANDROID_LOG_DEFAULT, | ||
ANDROID_LOG_VERBOSE, | ||
ANDROID_LOG_DEBUG, | ||
ANDROID_LOG_INFO, | ||
ANDROID_LOG_WARN, | ||
ANDROID_LOG_ERROR, | ||
ANDROID_LOG_FATAL, | ||
ANDROID_LOG_SILENT | ||
} | ||
|
||
int __android_log_write(int prio, const(char)* tag, const(char)* text); | ||
int __android_log_print(int prio, const(char)* tag, const(char)* fmt, ...); | ||
int __android_log_vprint(int prio, const(char)* tag, const(char)* fmt, va_list ap); | ||
void __android_log_assert(const(char)* cond, const(char)* tag, const(char)* fmt, ...); |