hedgewars/log.pas
branchhedgeroid
changeset 5306 b7c62722467d
equal deleted inserted replaced
5304:e29aa9e29f00 5306:b7c62722467d
       
     1 unit log;
       
     2 {$ifdef fpc}
       
     3  {$mode delphi}
       
     4 {$endif}
       
     5 
       
     6 interface
       
     7 
       
     8 const libname='liblog.so';
       
     9 
       
    10       ANDROID_LOG_UNKNOWN=0;
       
    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;
       
    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';
       
    25   
       
    26 implementation
       
    27 
       
    28 end.