#define STATISTICS_DBUS_ERROR_NAME "net.stc.statistics.Error.Failed"
-#define STC_DBUS_REPLY(invocation, parameters) \
- g_dbus_method_invocation_return_value((invocation), parameters);
-
#define STC_STATISTICS_DBUS_REPLY_ERROR(invocation, err_num) \
g_dbus_method_invocation_return_dbus_error((invocation), \
STATISTICS_DBUS_ERROR_NAME, \
"OUT_OF_MEMORY",
"INVALID_PARAMETER",
"NO_DATA",
+ "ALREADY_DATA",
"UNINITIALIZED",
+ "PERMISSION_DENIED",
"NOTIMPL"
};
GVariant *return_parameters = NULL;
stc_error_e ret;
+ stc_set_keep_alive(TRUE);
+
/* Total statistics since epoch */
rule.from = epoch;
rule.to = cur_time;
{
__STC_LOG_FUNC_ENTER__;
+ stc_set_keep_alive(TRUE);
+
STC_LOGI("stc statistics initialized");
stc_statistics_complete_init(object, invocation);
GVariant *return_parameters = NULL;
stc_error_e ret;
+ stc_set_keep_alive(TRUE);
+
/* Total statistics since epoch */
rule.from = epoch;
rule.to = cur_time;
GVariant *return_parameters = NULL;
stc_error_e ret;
+ stc_set_keep_alive(TRUE);
+
if (reset_rule != NULL) {
DEBUG_GDBUS_VARIANT("Selection rule: ", reset_rule);
GVariantIter *iter = NULL;