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