1 /* 2 ** 3 ** Copyright 2017, The Android Open Source Project 4 ** 5 ** This file is dual licensed. It may be redistributed and/or modified 6 ** under the terms of the Apache 2.0 License OR version 2 of the GNU 7 ** General Public License. 8 */ 9 10 #pragma once 11 12 #include <stdint.h> 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 #define android_errorWriteLog(tag, subTag) \ 19 __android_log_error_write(tag, subTag, -1, NULL, 0) 20 21 #define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ 22 __android_log_error_write(tag, subTag, uid, data, dataLen) 23 24 int __android_log_error_write(int tag, const char* subTag, int32_t uid, 25 const char* data, uint32_t dataLen); 26 27 #ifdef __cplusplus 28 } 29 #endif 30