diff options
Diffstat (limited to 'liblog/include/log/log_safetynet.h')
-rw-r--r-- | liblog/include/log/log_safetynet.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/liblog/include/log/log_safetynet.h b/liblog/include/log/log_safetynet.h new file mode 100644 index 000000000..d3e9b1954 --- /dev/null +++ b/liblog/include/log/log_safetynet.h @@ -0,0 +1,29 @@ +/* +** +** Copyright 2017, The Android Open Source Project +** +** This file is dual licensed. It may be redistributed and/or modified +** under the terms of the Apache 2.0 License OR version 2 of the GNU +** General Public License. +*/ + +#pragma once + +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define android_errorWriteLog(tag, subTag) \ + __android_log_error_write(tag, subTag, -1, NULL, 0) + +#define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ + __android_log_error_write(tag, subTag, uid, data, dataLen) + +int __android_log_error_write(int tag, const char* subTag, int32_t uid, + const char* data, uint32_t dataLen); + +#ifdef __cplusplus +} +#endif |