diff options
author | David 'Digit' Turner <digit@google.com> | 2009-05-29 06:03:27 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-05-29 06:03:27 -0700 |
commit | 730c8d7c03bbe384a1bc66aac357e97c06c7d64e (patch) | |
tree | d675744fedb3b531ebe553e5cbb99573211f68a2 /include/cutils/logd.h | |
parent | 09555c7a18342390556132f7d050a410d02206ef (diff) | |
parent | ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4 (diff) | |
download | system_core-730c8d7c03bbe384a1bc66aac357e97c06c7d64e.zip system_core-730c8d7c03bbe384a1bc66aac357e97c06c7d64e.tar.gz system_core-730c8d7c03bbe384a1bc66aac357e97c06c7d64e.tar.bz2 |
am ebefc48e: Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h>
Merge commit 'ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4'
* commit 'ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4':
Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h>
Diffstat (limited to 'include/cutils/logd.h')
-rw-r--r-- | include/cutils/logd.h | 43 |
1 files changed, 7 insertions, 36 deletions
diff --git a/include/cutils/logd.h b/include/cutils/logd.h index a1cb012..8737639 100644 --- a/include/cutils/logd.h +++ b/include/cutils/logd.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 The Android Open Source Project + * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,12 @@ #ifndef _ANDROID_CUTILS_LOGD_H #define _ANDROID_CUTILS_LOGD_H +/* the stable/frozen log-related definitions have been + * moved to this header, which is exposed by the NDK + */ +#include <android/log.h> + +/* the rest is only used internally by the system */ #include <time.h> #include <stdio.h> #include <unistd.h> @@ -32,45 +38,10 @@ extern "C" { #endif -/* - * Priority values, in ascending priority order. - */ -typedef enum android_LogPriority { - ANDROID_LOG_UNKNOWN = 0, - ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */ - ANDROID_LOG_VERBOSE, - ANDROID_LOG_DEBUG, - ANDROID_LOG_INFO, - ANDROID_LOG_WARN, - ANDROID_LOG_ERROR, - ANDROID_LOG_FATAL, - ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */ -} android_LogPriority; - -int __android_log_write(int prio, const char *tag, const char *text); - -int __android_log_vprint(int prio, const char *tag, - const char *fmt, va_list ap); - int __android_log_bwrite(int32_t tag, const void *payload, size_t len); int __android_log_btwrite(int32_t tag, char type, const void *payload, size_t len); -int __android_log_print(int prio, const char *tag, const char *fmt, ...) -#if defined(__GNUC__) - __attribute__ ((format(printf, 3, 4))) -#endif - ; - - -void __android_log_assert(const char *cond, const char *tag, - const char *fmt, ...) -#if defined(__GNUC__) - __attribute__ ((noreturn)) - __attribute__ ((format(printf, 3, 4))) -#endif - ; - #ifdef __cplusplus } #endif |