return convert_error_code_to_alarm(__FUNCTION__, result);
}
+
+int alarm_set_systime(int new_time)
+{
+ int result;
+
+ result = alarmmgr_set_systime(new_time);
+ if (result < 0)
+ return convert_error_code_to_alarm(__FUNCTION__, result);
+
+ return ALARM_ERROR_NONE;
+}
+
+int alarm_set_systime_with_propagation_delay(struct timespec new_time, struct timespec req_time)
+{
+ int result;
+
+ result = alarmmgr_set_systime_with_propagation_delay(new_time, req_time);
+ if (result < 0)
+ return convert_error_code_to_alarm(__FUNCTION__, result);
+
+ return ALARM_ERROR_NONE;
+}
+
+int alarm_set_timezone(char *tzpath_str)
+{
+ int result;
+
+ result = alarmmgr_set_timezone(tzpath_str);
+ if (result < 0)
+ return convert_error_code_to_alarm(__FUNCTION__, result);
+
+ return ALARM_ERROR_NONE;
+}