1. Add the log color. 26/40526/1 accepted/tizen_common tizen_3.0.2015.q2_common accepted/tizen/common/20150605.080204 accepted/tizen/mobile/20150605.092535 accepted/tizen/tv/20150605.092458 accepted/tizen/wearable/20150605.092525 submit/tizen/20150605.021757
authorSangkyu Park <sk1122.park@samsung.com>
Fri, 5 Jun 2015 01:37:32 +0000 (10:37 +0900)
committerSangkyu Park <sk1122.park@samsung.com>
Fri, 5 Jun 2015 01:37:35 +0000 (10:37 +0900)
2. Add config message enum for error

Change-Id: I4c8cdf91133448a33fc1037e20ba72345acfcb88
Signed-off-by: Sangkyu Park <sk1122.park@samsung.com>
include/mm_wfd_common_private.h
packaging/libmm-scmirroring-common.spec
wfdconfig/include/wfdconfigmessage.h

index 92d33c7..14f0247 100755 (executable)
@@ -33,42 +33,51 @@ extern "C" {
 #ifdef LOG_TAG
 #undef LOG_TAG
 #endif
-#define LOG_TAG "MM_WFD_COMMON"
+#define LOG_TAG "MM_SCMIRRORING_COMMON"
+
+#define FONT_COLOR_RESET    "\033[0m"
+#define FONT_COLOR_RED      "\033[31m"
+#define FONT_COLOR_GREEN    "\033[32m"
+#define FONT_COLOR_YELLOW   "\033[33m"
+#define FONT_COLOR_BLUE     "\033[34m"
+#define FONT_COLOR_PURPLE   "\033[35m"
+#define FONT_COLOR_CYAN     "\033[36m"
+#define FONT_COLOR_GRAY     "\033[37m"
 
 #define wfd_debug(fmt, arg...) do { \
-                       LOGD(""fmt"", ##arg);     \
+                       LOGD(FONT_COLOR_RESET""fmt"", ##arg);     \
                } while (0)
 
 #define wfd_info(fmt, arg...) do { \
-                       LOGI(""fmt"", ##arg);     \
+                       LOGI(FONT_COLOR_GREEN""fmt""FONT_COLOR_RESET, ##arg);     \
                } while (0)
 
 #define wfd_error(fmt, arg...) do { \
-                       LOGE(""fmt"", ##arg);     \
+                       LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg);     \
                } while (0)
 
 #define wfd_warning(fmt, arg...) do { \
-                       LOGW(""fmt"", ##arg);     \
+                       LOGW(FONT_COLOR_YELLOW""fmt""FONT_COLOR_RESET, ##arg);     \
                } while (0)
 
 #define wfd_debug_fenter() do { \
-                       LOGD("<Enter>");     \
+                       LOGD(FONT_COLOR_RESET"<Enter>");     \
                } while (0)
 
 #define wfd_debug_fleave() do { \
-                       LOGD("<Leave>");     \
+                       LOGD(FONT_COLOR_RESET"<Leave>");     \
                } while (0)
 
 #define wfd_error_fenter() do { \
-                       LOGE("NO-ERROR : <Enter>");     \
+                       LOGE(FONT_COLOR_RESET"NO-ERROR : <Enter>");     \
                } while (0)
 
 #define wfd_error_fleave() do { \
-                       LOGE("NO-ERROR : <Leave>");     \
+                       LOGE(FONT_COLOR_RESET"NO-ERROR : <Leave>");     \
                } while (0)
 
 #define wfd_sucure_info(fmt, arg...) do { \
-                       SECURE_LOGI(""fmt"", ##arg);     \
+                       SECURE_LOGI(FONT_COLOR_GREEN""fmt""FONT_COLOR_RESET, ##arg);     \
                } while (0)
 
 #ifdef __cplusplus
index 4eb900e..056114a 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-scmirroring-common
 Summary:    Multimedia Framework Wifi-Display Common Library
-Version:    0.0.35
+Version:    0.0.36
 Release:    0
 Group:      System/Libraries
 License:    Apache License 2.0
index 59f08c4..d02d597 100755 (executable)
@@ -36,7 +36,9 @@ G_BEGIN_DECLS
  */
 typedef enum {
   WFD_OK     = 0,
-  WFD_EINVAL = -1
+  WFD_EINVAL = -1,
+  WFD_NOT_IMPLEMENTED = -2,
+  WFD_NOT_SUPPORTED = -3
 } WFDResult;
 
 typedef enum {