DBG("Enter");
RETVM_IF(key < 0 || SYSTEM_SETTINGS_KEY_MAX <= key,
SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER, "Invalid Key(%d)", key);
-
+
sst_interface *iface = NULL;
ret = sst_get_interface(key, &iface);
if (SYSTEM_SETTINGS_ERROR_NONE != ret) {
SYSTEM_SETTINGS_KEY_TIME_CHANGED,
VCONFKEY_SYSTEM_TIME_CHANGED,
SYSTEM_SETTING_DATA_TYPE_INT,
- NULL,
+ sst_time_get_changed,
NULL,
sst_vconf_set_changed_cb,
sst_vconf_unset_changed_cb,
return SYSTEM_SETTINGS_ERROR_NONE;
}
+
+//TODO : checking this function is being used or not.
+int sst_time_get_changed(sst_interface *iface, void **value)
+{
+ time_t cur_tick;
+ int ** val = (int**)value;
+ cur_tick = time(NULL);
+ **val = cur_tick;
+ return SYSTEM_SETTINGS_ERROR_NONE;
+}
int sst_locale_get_timeformat_24hour(sst_interface *iface, void **value);
int sst_locale_set_timeformat_24hour(sst_interface *iface, void *value);
int sst_locale_get_timezone(sst_interface *iface, void **value);
-int sst_locale_set_timezone(sst_interface *iface, void *value);
\ No newline at end of file
+int sst_locale_set_timezone(sst_interface *iface, void *value);
+int sst_time_get_changed(sst_interface *iface, void **value);