blob: 9527779711c20e6f01786d14e9bc221c6aab5727 [file] [log] [blame]
/*
**
** 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.
*/
#ifndef _LIBS_LOG_FRONTEND_H
#define _LIBS_LOG_FRONTEND_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Logging frontends, bit mask to select features. Function returns selection.
*/
#define LOGGER_DEFAULT 0x0
#define LOGGER_LOGD 0x1
#define LOGGER_KERNEL 0x2 /* Reserved/Deprecated */
#define LOGGER_NULL 0x4 /* Does not release resources of other selections */
#define LOGGER_LOCAL 0x8 /* logs sent to local memory */
/* Both return the selected frontend flag mask, or negative errno */
int android_set_log_frontend(int frontend_flag);
int android_get_log_frontend();
#ifdef __cplusplus
}
#endif
#endif /* _LIBS_LOG_FRONTEND_H */