Remove build warning
[platform/upstream/libsoup.git] / libsoup / 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_EXT 1
7 #define ENABLE_TIZEN_CERTIFICATE_FILE_SET 1 /*Shobhita Agarwal and Sungman Kim: Initialize the tls_db based on a timer at browser launch.*/
8 #define ENABLE_TIZEN_UPDATE_CORRECTED_INITIAL_AGE_FOR_CACHE 1 /*Seonah Moon: Update current initial age when libsoup receive 304 not modified message*/
9 #define ENABLE_TIZEN_UPDATE_CACHE_ENTRY_CONTENT_TYPE_HEADER 1 /* Raveendra Karu : Update Cache entry's Content-Type header value with sniffed Content-Type value */
10 #define ENABLE_TIZEN_USER_AGENT_CHECK_IN_CACHE 1 /* Praveen : Add user agent check to cache */
11 #define ENABLE_TIZEN_DATA_URI_WITHOUT_MEDIA_TYPE 1 /* Raveendra Karu : To decode data properly in data url if there is no media type specified */
12 #define ENABLE_TIZEN_HANDLE_MALFORMED_MAX_AGE_HEADER 1 /* Raveendra Karu : Handling malformed max-age cache-control value (ex: "Cache-Control: private,max-age") of the request headers */
13 #define ENABLE_TIZEN_FIX_PACK_ENTRY 1 /*Kwangtae Ko : Fix the utf-8 encoding problem in pack_entry*/
14 #define ENABLE_TIZEN_FIX_CACHE_DUMP 1 /*Kwangtae Ko : Fix the soup_cache_dump() not to exist a soup. cache2 file when there is no SoupCacheEntry */
15 #define ENABLE_TIZEN_ON_AUTHENTICATION_REQUESTED 1 /*Sungman Kim, Raveendra Karu : Modify the authentication signal handling method */
16 #define ENABLE_TIZEN_HANDLING_307_REDIRECTION 1 /*Raveendra Karu : Handling redirection (307) of POST, GET responses*/
17
18 #if ENABLE(TIZEN_DLOG)
19
20 #ifndef LOG_TAG
21 #define LOG_TAG "libsoup" /* This LOG_TAG should be defined before including dlog.h. Because dlog.h is using it. */
22 #endif
23
24 #include <dlog.h>
25
26 #define TIZEN_LOGD(fmt, args...) LOGD(fmt, ##args)
27 #define TIZEN_LOGI(fmt, args...) LOGI(fmt, ##args)
28 #define TIZEN_LOGW(fmt, args...) LOGW(fmt, ##args)
29 #define TIZEN_LOGE(fmt, args...) LOGE(fmt, ##args)
30 #define TIZEN_LOGE_IF(cond, fmt, args...) LOGE_IF(cond, fmt, ##args)
31
32 #define TIZEN_SECURE_LOGD(fmt, args...) SECURE_LOGD(fmt, ##args)
33 #define TIZEN_SECURE_LOGI(fmt, args...) SECURE_LOGI(fmt, ##args)
34 #define TIZEN_SECURE_LOGW(fmt, args...) SECURE_LOGW(fmt, ##args)
35 #define TIZEN_SECURE_LOGE(fmt, args...) SECURE_LOGE(fmt, ##args)
36
37 #else
38
39 #define TIZEN_LOGD(fmt, args...)
40 #define TIZEN_LOGI(fmt, args...)
41 #define TIZEN_LOGW(fmt, args...)
42 #define TIZEN_LOGE(fmt, args...)
43 #define TIZEN_LOGE_IF(cond, fmt, args...)
44
45 #define TIZEN_SECURE_LOGD(fmt, args...)
46 #define TIZEN_SECURE_LOGI(fmt, args...)
47 #define TIZEN_SECURE_LOGW(fmt, args...)
48 #define TIZEN_SECURE_LOGE(fmt, args...)
49
50 #endif // ENABLE(TIZEN_DLOG)
51
52 #endif //#ifndef TIZEN_H
53
54