X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fandroid%2Fnotification-service%2Fsrc%2Fmain%2Fjni%2Fcommon%2FJniNotificationCommon.h;h=b4061aee3f7f34c23756f1a48dd7754b7cbab70a;hb=8229635f6d207516ccbbdf23b13be164e0fc1787;hp=2852195064723b59eb819752c046bc05731e4948;hpb=0a9584f9157485845c2b59b567e77b97e59f6c26;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.h b/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.h index 2852195..b4061ae 100755 --- a/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.h +++ b/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.h @@ -23,24 +23,25 @@ #include #include +#include "JniSharedObjectHolder.h" -#define LOG_TAG "Notification_Common" +#define NSTAG "NotificationService_JNI" #define JNI_CURRENT_VERSION JNI_VERSION_1_6 +#define NS_LOGI(...) __android_log_print(ANDROID_LOG_INFO, NSTAG, __VA_ARGS__) +#define NS_LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, NSTAG, __VA_ARGS__) +#define NS_LOGE(...) __android_log_print(ANDROID_LOG_ERROR, NSTAG, __VA_ARGS__) + #ifdef __cplusplus extern "C" { #endif -#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) -#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) -#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__) -#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) - #define JNI_EXCEPTION 1000 #define JNI_NO_NATIVE_POINTER 1001 #define JNI_INVALID_VALUE 1002 +#define NATIVE_EXCEPTION 1003 #define JNI_NS_OK 100 #define JNI_NS_ERROR 200 @@ -63,4 +64,4 @@ int NSExceptionInit(JNIEnv *env); } #endif -#endif // _JNI_NOTIFICATION_COMMON_H_ \ No newline at end of file +#endif // _JNI_NOTIFICATION_COMMON_H_