Skip to content

Commit

Permalink
Added file required for logging on android
Browse files Browse the repository at this point in the history
  • Loading branch information
MrcSnm committed Jul 31, 2020
1 parent 902cf2c commit 9bc83c3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions log.d
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, ...);

0 comments on commit 9bc83c3

Please sign in to comment.