summaryrefslogtreecommitdiff
path: root/include/alarm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/alarm.h')
-rw-r--r--include/alarm.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/alarm.h b/include/alarm.h
index 3e2367f..7f80d3b 100644
--- a/include/alarm.h
+++ b/include/alarm.h
@@ -1296,6 +1296,42 @@ int main(int argc,char **argv {
*/
void *alarmmgr_get_alarm_appsvc_info(alarm_id_t alarm_id, int *return_code);
+
+
+/**
+ * This function sets power RTC (which can power on the system).
+ * @param [in] alarm_date_t time
+ *
+ * @return This function returns the result. On success, ALARMMGR_RESULT_SUCCESS will be returned
+ * else, appropriate error no will be returned.
+ * @pre None.
+ * @post None.
+ * @see None
+ * @remark None.
+ *
+ * @par Sample code:
+ * @code
+#include <alarm.h>
+
+ ...
+
+alarm_date_t alarm_date={2012,04,05,10,10,00};
+
+int main(int argc,char **argv {
+ int return_code = 0;
+ return_code = alarmmgr_set_rtc_time(&alarm_date);
+ if (return_code != ALARMMGR_RESULT_SUCCESS){
+ printf("Error returned is %d\n",return_code);
+ }
+ return 0;
+
+ }
+ * @endcode
+ * @limo
+ */
+int alarmmgr_set_rtc_time(alarm_date_t *time);
+
+
/**
* @}
*/