fdbe652791630a8490c618cc5d95a99587b64e33
[platform/upstream/glib-networking.git] / tls / gnutls / TIZEN.h
1 #ifndef TIZEN_H
2 #define TIZEN_H
3
4 #define ENABLE(TIZEN_FEATURE) (defined ENABLE_##TIZEN_FEATURE  && ENABLE_##TIZEN_FEATURE)
5
6 #define ENABLE_TIZEN_TLS11_AND_TLS12_SUPPORT_DISABLE 1
7
8 #define ENABLE_TIZEN_NPN 1
9 #define ENABLE_TIZEN_EXT 1
10
11 #if ENABLE(TIZEN_DLOG)
12
13 #ifndef LOG_TAG
14 #define LOG_TAG "glib-networking" /* This LOG_TAG should be defined before including dlog.h. Because dlog.h is using it. */
15 #endif
16
17 #include <dlog/dlog.h>
18
19 #define TIZEN_LOGD(fmt, args...) LOGD("[%s: %s: %d] "fmt, (rindex(__FILE__, '/') ? rindex(__FILE__, '/') + 1 : __FILE__), __FUNCTION__, __LINE__, ##args)
20 #define TIZEN_LOGI(fmt, args...) LOGI("[%s: %s: %d] "fmt, (rindex(__FILE__, '/') ? rindex(__FILE__, '/') + 1 : __FILE__), __FUNCTION__, __LINE__, ##args)
21 #define TIZEN_LOGW(fmt, args...) LOGW("[%s: %s: %d] "fmt, (rindex(__FILE__, '/') ? rindex(__FILE__, '/') + 1 : __FILE__), __FUNCTION__, __LINE__, ##args)
22 #define TIZEN_LOGE(fmt, args...) LOGE("[%s: %s: %d] "fmt, (rindex(__FILE__, '/') ? rindex(__FILE__, '/') + 1 : __FILE__), __FUNCTION__, __LINE__, ##args)
23 #define TIZEN_LOGE_IF(cond, fmt, args...) LOGE_IF(cond, "[%s: %s: %d] "fmt, (rindex(__FILE__, '/') ? rindex(__FILE__, '/') + 1 : __FILE__), __FUNCTION__, __LINE__, ##args)
24
25 #endif
26
27 #if ENABLE(TIZEN_GNUTLS_DEBUG)
28 #define GTLS_GNUTLS_DEBUG 1
29 #endif
30
31 #endif