17ec681f3Smrg/* 27ec681f3Smrg * Copyright (C) 2017 The Android Open Source Project 37ec681f3Smrg * 47ec681f3Smrg * Licensed under the Apache License, Version 2.0 (the "License"); 57ec681f3Smrg * you may not use this file except in compliance with the License. 67ec681f3Smrg * You may obtain a copy of the License at 77ec681f3Smrg * 87ec681f3Smrg * http://www.apache.org/licenses/LICENSE-2.0 97ec681f3Smrg * 107ec681f3Smrg * Unless required by applicable law or agreed to in writing, software 117ec681f3Smrg * distributed under the License is distributed on an "AS IS" BASIS, 127ec681f3Smrg * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137ec681f3Smrg * See the License for the specific language governing permissions and 147ec681f3Smrg * limitations under the License. 157ec681f3Smrg */ 167ec681f3Smrg 177ec681f3Smrg#pragma once 187ec681f3Smrg 197ec681f3Smrg#include <stdint.h> 207ec681f3Smrg 217ec681f3Smrg#ifdef __cplusplus 227ec681f3Smrgextern "C" { 237ec681f3Smrg#endif 247ec681f3Smrg 257ec681f3Smrg#define android_errorWriteLog(tag, subTag) \ 267ec681f3Smrg __android_log_error_write(tag, subTag, -1, NULL, 0) 277ec681f3Smrg 287ec681f3Smrg#define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ 297ec681f3Smrg __android_log_error_write(tag, subTag, uid, data, dataLen) 307ec681f3Smrg 317ec681f3Smrgint __android_log_error_write(int tag, const char* subTag, int32_t uid, 327ec681f3Smrg const char* data, uint32_t dataLen); 337ec681f3Smrg 347ec681f3Smrg#ifdef __cplusplus 357ec681f3Smrg} 367ec681f3Smrg#endif 37