author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 17 Sep 2018 22:37:47 +0200 | |
changeset 13790 | 4ed202f0428e |
parent 10017 | de822cd3df3a |
permissions | -rw-r--r-- |
7889 | 1 |
unit log; |
2 |
{$ifdef fpc} |
|
5306 | 3 |
{$mode delphi} |
7889 | 4 |
{$endif} |
5 |
||
6 |
interface |
|
7 |
||
8 |
const libname='liblog.so'; |
|
9 |
||
10 |
ANDROID_LOG_UNKNOWN=0; |
|
5306 | 11 |
ANDROID_LOG_DEFAULT=1; |
12 |
ANDROID_LOG_VERBOSE=2; |
|
13 |
ANDROID_LOG_DEBUG=3; |
|
14 |
ANDROID_LOG_INFO=4; |
|
15 |
ANDROID_LOG_WARN=5; |
|
16 |
ANDROID_LOG_ERROR=6; |
|
17 |
ANDROID_LOG_FATAL=7; |
|
7889 | 18 |
ANDROID_LOG_SILENT=8; |
19 |
||
20 |
type android_LogPriority=integer; |
|
21 |
||
22 |
function __android_log_write(prio:longint;tag,text:pchar):longint; cdecl; external libname name '__android_log_write'; |
|
23 |
||
24 |
//function __android_log_print(prio:longint;tag,print:pchar;params:array of pchar):longint; cdecl; external libname name '__android_log_print'; |
|
10017 | 25 |
|
7889 | 26 |
implementation |
27 |
||
28 |
end. |