Fix: Fetching interface's total data usage issue. 57/140557/1
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 25 Jul 2017 10:05:38 +0000 (15:35 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 25 Jul 2017 10:05:38 +0000 (15:35 +0530)
Description: This patch fixes the issue when total data usage of a
particular interface is fetched using API, in this scenario iface_type
was packed in dictionary instead of iftype due to which iftype was
not used in fetch query.

Change-Id: Ib43b050ffc271e729c5b8b523df723cf4c0e3bb7
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
include/stc.h
packaging/capi-network-stc.spec
src/include/stc-statistics.h

index 37c61272a8cd01e708c5c1ec347b30e9be6cd4c6..08cb42292e983309161068ab56147401de990a99 100755 (executable)
@@ -355,7 +355,7 @@ int stc_deinitialize(stc_h stc);
  * @see stc_get_total_stats()
  */
 int stc_get_stats(stc_h stc, stc_stats_rule_h rule,
-               stc_stats_info_cb info_cb,      void *user_data);
+                 stc_stats_info_cb info_cb, void *user_data);
 
 /**
  * @brief Gets the statistics information of each application asynchronously.
index 94d603a21e9aa574f4e6b8793dbdea297556f0d0..85e5952caebcdf8a387a559fe28a82182961204e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-network-stc
 Summary:    A Smart Traffic Control (STC) libraries in Native API
-Version:    0.0.16
+Version:    0.0.17
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index 3975376755c4365bc6e2b523e4ac310fc39dd8fd..88cdb2ba962d3d5a05ad2f75412a3bb2a96098a2 100755 (executable)
@@ -53,7 +53,7 @@ extern "C" {
 #define STC_STATS_RULE_APP_ID                  "app_id"
 #define STC_STATS_RULE_INTERVAL_FROM   "from"
 #define STC_STATS_RULE_INTERVAL_TO             "to"
-#define STC_STATS_RULE_IFTYPE                  "iface_type"
+#define STC_STATS_RULE_IFTYPE                  "iftype"
 #define STC_STATS_RULE_TIME_PERIOD             "granularity"
 
 typedef struct {