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 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /* 17 * Logging transports, bit mask to select features. Function returns selection. 18 */ 19 /* clang-format off */ 20 #define LOGGER_DEFAULT 0x00 21 #define LOGGER_LOGD 0x01 22 #define LOGGER_KERNEL 0x02 /* Reserved/Deprecated */ 23 #define LOGGER_NULL 0x04 /* Does not release resources of other selections */ 24 #define LOGGER_RESERVED 0x08 /* Reserved, previously for logging to local memory */ 25 #define LOGGER_STDERR 0x10 /* logs sent to stderr */ 26 /* clang-format on */ 27 28 /* Both return the selected transport flag mask, or negative errno */ 29 int android_set_log_transport(int transport_flag); 30 int android_get_log_transport(); 31 32 #ifdef __cplusplus 33 } 34 #endif 35