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 #ifndef _LIBS_LOG_PROPERTIES_H 11 #define _LIBS_LOG_PROPERTIES_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 #ifndef __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 18 #ifndef __ANDROID_API__ 19 #define __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 1 20 #elif __ANDROID_API__ > 24 /* > Nougat */ 21 #define __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 1 22 #else 23 #define __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 0 24 #endif 25 #endif 26 27 #if __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 28 int __android_log_is_debuggable(); 29 #endif 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif /* _LIBS_LOG_PROPERTIES_H */ 36