mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-31 00:34:56 -04:00
72 lines
3.2 KiB
Odin
72 lines
3.2 KiB
Odin
// Generated by core/sys/android/_gen/generate.py from the Android NDK headers. DO NOT EDIT.
|
|
// Source: <android/log.h> (NDK r30, 30.0.16248370)
|
|
#+build linux
|
|
package android
|
|
|
|
import "core:c"
|
|
import "core:sys/posix"
|
|
|
|
foreign import liblog "system:log"
|
|
|
|
android_LogPriority :: enum c.int {
|
|
UNKNOWN = 0,
|
|
DEFAULT = 1,
|
|
VERBOSE = 2,
|
|
DEBUG = 3,
|
|
INFO = 4,
|
|
WARN = 5,
|
|
ERROR = 6,
|
|
FATAL = 7,
|
|
SILENT = 8,
|
|
}
|
|
|
|
log_id_t :: enum c.int {
|
|
MIN = 0,
|
|
MAIN = 0,
|
|
RADIO = 1,
|
|
EVENTS = 2,
|
|
SYSTEM = 3,
|
|
CRASH = 4,
|
|
STATS = 5,
|
|
SECURITY = 6,
|
|
KERNEL = 7,
|
|
MAX = 8,
|
|
DEFAULT = 0x7FFFFFFF,
|
|
}
|
|
|
|
__android_log_message :: struct {
|
|
struct_size: c.size_t,
|
|
buffer_id: log_id_t,
|
|
priority: android_LogPriority,
|
|
tag: cstring,
|
|
file: cstring,
|
|
line: u32,
|
|
message: cstring,
|
|
}
|
|
|
|
__android_logger_function :: proc "c" (log_message: ^__android_log_message)
|
|
__android_aborter_function :: proc "c" (abort_message: cstring)
|
|
|
|
@(default_calling_convention="c")
|
|
foreign liblog {
|
|
__android_log_write :: proc(prio: android_LogPriority, tag: cstring, text: cstring) -> c.int ---
|
|
__android_log_buf_write :: proc(log_id: log_id_t, prio: android_LogPriority, tag: cstring, text: cstring) -> c.int ---
|
|
__android_log_print :: proc(prio: android_LogPriority, tag: cstring, fmt: cstring, #c_vararg args: ..any) -> c.int ---
|
|
__android_log_buf_print :: proc(log_id: log_id_t, prio: android_LogPriority, tag: cstring, fmt: cstring, #c_vararg args: ..any) -> c.int ---
|
|
__android_log_vprint :: proc(prio: android_LogPriority, tag: cstring, fmt: cstring, ap: va_list_arg) -> c.int ---
|
|
__android_log_assert :: proc(cond: cstring, tag: cstring, fmt: cstring, #c_vararg args: ..any) -> ! ---
|
|
__android_log_write_log_message :: proc(log_message: ^__android_log_message) --- // API level 30
|
|
__android_log_set_logger :: proc(logger: __android_logger_function) --- // API level 30
|
|
__android_log_logd_logger :: proc(log_message: ^__android_log_message) --- // API level 30
|
|
__android_log_logd_logger_with_timestamp :: proc(log_message: ^__android_log_message, timestamp: ^posix.timespec) --- // API level 37
|
|
__android_log_stderr_logger :: proc(log_message: ^__android_log_message) --- // API level 30
|
|
__android_log_set_aborter :: proc(aborter: __android_aborter_function) --- // API level 30
|
|
__android_log_call_aborter :: proc(abort_message: cstring) --- // API level 30
|
|
__android_log_default_aborter :: proc(abort_message: cstring) -> ! --- // API level 30
|
|
__android_log_is_loggable :: proc(prio: android_LogPriority, tag: cstring, default_prio: android_LogPriority) -> c.int ---
|
|
__android_log_is_loggable_len :: proc(prio: android_LogPriority, tag: cstring, len: c.size_t, default_prio: android_LogPriority) -> c.int ---
|
|
__android_log_set_minimum_priority :: proc(priority: android_LogPriority) -> android_LogPriority --- // API level 30
|
|
__android_log_get_minimum_priority :: proc() -> android_LogPriority --- // API level 30
|
|
__android_log_set_default_tag :: proc(tag: cstring) --- // API level 30
|
|
}
|