1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 extern "C" {
20 
21 /**
22  * Android log priority values, in increasing order of priority.
23  */
24 typedef enum android_LogPriority {
25     /** For internal use only.  */
26     ANDROID_LOG_UNKNOWN = 0,
27     /** The default priority, for internal use only.  */
28     ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */
29     /** Verbose logging. Should typically be disabled for a release apk. */
30     ANDROID_LOG_VERBOSE,
31     /** Debug logging. Should typically be disabled for a release apk. */
32     ANDROID_LOG_DEBUG,
33     /** Informational logging. Should typically be disabled for a release apk. */
34     ANDROID_LOG_INFO,
35     /** Warning logging. For use with recoverable failures. */
36     ANDROID_LOG_WARN,
37     /** Error logging. For use with unrecoverable failures. */
38     ANDROID_LOG_ERROR,
39     /** Fatal logging. For use when aborting. */
40     ANDROID_LOG_FATAL,
41     /** For internal use only.  */
42     ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */
43 } android_LogPriority;
44 
45 typedef void (*__android_logger_function)(const struct __android_log_message* log_message);
__android_log_set_logger(__android_logger_function)46 inline void __android_log_set_logger(__android_logger_function) {}
__android_log_stderr_logger(const struct __android_log_message *)47 inline void __android_log_stderr_logger(const struct __android_log_message*) {}
48 
49 } // extern "C"
50