* Functions Declaration
*****************************************************************************/
+gboolean handle_statistics_init(StcStatistics *object,
+ GDBusMethodInvocation *invocation);
+
gboolean handle_statistics_get_all(StcStatistics *object,
GDBusMethodInvocation *invocation,
GVariant *select_rule,
<node>
<interface name="net.stc.statistics">
+ <method name='Init'>
+ </method>
<method name='GetAll'>
<arg type='a{sv}' name='select_rule' direction='in'/>
<arg type='i' name='error_code' direction='out'/>
Name: stc-manager
Summary: STC(Smart Traffic Control) manager
-Version: 0.0.3
+Version: 0.0.4
Release: 0
Group: Network & Connectivity/Other
License: Apache-2.0
</policy>
<policy context="default">
<check send_destination="net.stc" send_interface="net.stc" privilege="http://tizen.org/privilege/stc" />
+ <check send_destination="net.stc" send_interface="net.stc.restriction" privilege="http://tizen.org/privilege/stc" />
+ <check send_destination="net.stc" send_interface="net.stc.statistics" privilege="http://tizen.org/privilege/stc" />
</policy>
</busconfig>
/* Register for method callbacks as signal callbacks */
+ g_signal_connect(statistics, "handle-init",
+ G_CALLBACK(handle_statistics_init),
+ stc);
+
g_signal_connect(statistics, "handle-get",
G_CALLBACK(handle_statistics_get),
stc);
return TRUE;
}
+gboolean handle_statistics_init(StcStatistics *object,
+ GDBusMethodInvocation *invocation)
+{
+ __STC_LOG_FUNC_ENTER__;
+
+ STC_LOGI("stc statistics initialized");
+ stc_statistics_complete_init(object, invocation);
+
+ __STC_LOG_FUNC_EXIT__;
+ return TRUE;
+}
+
gboolean handle_statistics_get(StcStatistics *object,
GDBusMethodInvocation *invocation,
const gchar *app_id,