blob: b271602539984fb2d260863944ffe8b439a17150 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001/*
David 'Digit' Turnerebefc482009-05-29 14:45:04 +02002 * Copyright (C) 2009 The Android Open Source Project
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08003 *
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#ifndef _ANDROID_CUTILS_LOGD_H
18#define _ANDROID_CUTILS_LOGD_H
19
David 'Digit' Turnerebefc482009-05-29 14:45:04 +020020/* the stable/frozen log-related definitions have been
21 * moved to this header, which is exposed by the NDK
22 */
23#include <android/log.h>
24
25/* the rest is only used internally by the system */
Yabin Cui4a6e5a32015-01-26 19:48:54 -080026#if !defined(_WIN32)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080027#include <pthread.h>
28#endif
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080029#include <stdarg.h>
Yabin Cui4a6e5a32015-01-26 19:48:54 -080030#include <stdint.h>
31#include <stdio.h>
32#include <sys/types.h>
33#include <time.h>
34#include <unistd.h>
35
36#include <log/uio.h>
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080037
38#ifdef __cplusplus
39extern "C" {
40#endif
41
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080042int __android_log_bwrite(int32_t tag, const void *payload, size_t len);
43int __android_log_btwrite(int32_t tag, char type, const void *payload,
44 size_t len);
Nick Kralevich2a4d05a2014-07-01 10:57:16 -070045int __android_log_bswrite(int32_t tag, const char *payload);
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080046
Mark Salyzyn083b0372015-12-04 10:59:45 -080047int __android_log_security_bwrite(int32_t tag, const void *payload, size_t len);
Rubin Xud545d292016-01-10 22:31:19 +000048int __android_log_security_bswrite(int32_t tag, const char *payload);
Mark Salyzyn083b0372015-12-04 10:59:45 -080049
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080050#ifdef __cplusplus
51}
52#endif
53
54#endif /* _LOGD_H */