Path: blob/21.2-virgl/include/android_stub/log/log_safetynet.h
4547 views
/*1* Copyright (C) 2017 The Android Open Source Project2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516#pragma once1718#include <stdint.h>1920#ifdef __cplusplus21extern "C" {22#endif2324#define android_errorWriteLog(tag, subTag) \25__android_log_error_write(tag, subTag, -1, NULL, 0)2627#define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \28__android_log_error_write(tag, subTag, uid, data, dataLen)2930int __android_log_error_write(int tag, const char* subTag, int32_t uid,31const char* data, uint32_t dataLen);3233#ifdef __cplusplus34}35#endif363738