typedef int alarm_id_t;
/**
* The prototype of alarm handler.
-* param [in] alarm_id the id of expired alarm
+* param [in] alarm_id the id of expired alarm
*/
typedef int (*alarm_set_time_cb_t) (int result, void *user_param);
*
* @param None
*
- * @return None
+ * @return None
*
* @pre Alarm manager is initialized
- * @post Alarm manager is de-initialized
+ * @post Alarm manager is de-initialized
* @remark An application must call this function once it is done with alarmmanger usage
* @par Sample code:
* @code
// Initialize alarmmanager
// Set alarm
- alarmmgr_fini() ;
+ alarmmgr_fini() ;
}
* @endcode
*/
// Call back function
int callback(alarm_id_t alarm_id,void* user_param)
{
- time_t current_time;
- time(¤t_time);
-
- printf("Alarm[%d] has expired at %s\n", alarm_id, ctime(¤t_time));
+ time_t current_time;
+ time(¤t_time);
- return 0;
+ printf("Alarm[%d] has expired at %s\n", alarm_id, ctime(¤t_time));
+ return 0;
}
...
* @post None.
* @see None.
* @remark But an application does not need to specify year, month, and day field of alarm_info. If an application sets
- * those fields with zero, the function sets them with proper values.
+ * those fields with zero, the function sets them with proper values.
*
* @par Sample code:
* @code
* ALARM_REPEAT_MODE_WEEKLY, ALARM_REPEAT_MODE_MONTHLY or ALARM_REPEAT_MODE_ANNUALLY.
* @param [in] repeat_value the ALARM_REPEAT_MODE_REPEAT mode : interval between subsequent repeats of the alarm.
* the ALARM_REPEAT_MODE_WEEKLY mode : days of a week
- * (ALARM_WDAY_SUNDAY, ALARM_WDAY_MONDAY, ALARM_WDAY_TUESDAY, ALARM_WDAY_WEDNESDAY,
- * ALARM_WDAY_THURSDAY, ALARM_WDAY_FRIDAY, ALARM_WDAY_SATURDAY)
+ * (ALARM_WDAY_SUNDAY, ALARM_WDAY_MONDAY, ALARM_WDAY_TUESDAY, ALARM_WDAY_WEDNESDAY,
+ * ALARM_WDAY_THURSDAY, ALARM_WDAY_FRIDAY, ALARM_WDAY_SATURDAY)
* the others : this parameter is ignored.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
* ALARM_REPEAT_MODE_WEEKLY, ALARM_REPEAT_MODE_MONTHLY or ALARM_REPEAT_MODE_ANNUALLY.
* @param [out] repeat_value the ALARM_REPEAT_MODE_REPEAT mode : interval between subsequent repeats of the alarm.
* the ALARM_REPEAT_MODE_WEEKLY mode : days of a week
- * (ALARM_WDAY_SUNDAY, ALARM_WDAY_MONDAY, ALARM_WDAY_TUESDAY, ALARM_WDAY_WEDNESDAY,
- * ALARM_WDAY_THURSDAY, ALARM_WDAY_FRIDAY, ALARM_WDAY_SATURDAY)
+ * (ALARM_WDAY_SUNDAY, ALARM_WDAY_MONDAY, ALARM_WDAY_TUESDAY, ALARM_WDAY_WEDNESDAY,
+ * ALARM_WDAY_THURSDAY, ALARM_WDAY_FRIDAY, ALARM_WDAY_SATURDAY)
* the others : this parameter is ignored.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
* @param [in] alarm alarm entry
* @param [in] alarm_type one of ALARM_TYPE_DEFAULT : After the device reboot, the alarm still works.
- * ALARM_TYPE_VOLATILE : After the device reboot, the alarm does not work.
+ * ALARM_TYPE_VOLATILE : After the device reboot, the alarm does not work.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
*
* @param [in] alarm the entry of an alarm to be created.
* @param [in] bundle_data bundle which contains information about the destination.
- * @param [out] alarm_id the id of the alarm added.
+ * @param [out] alarm_id the id of the alarm added.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
}
* @endcode
*/
-int alarmmgr_add_alarm_appsvc_with_localtime(alarm_entry_t *alarm,void *bundle_data, alarm_id_t *alarm_id);
+int alarmmgr_add_alarm_appsvc_with_localtime(alarm_entry_t *alarm, void *bundle_data, alarm_id_t *alarm_id);
/**
* This function adds an alarm entry to the server.
*
* @param [in] alarm the entry of an alarm to be created.
* @param [in] destination the packname of application that the alarm will be expired.
- * @param [out] alarm_id the id of the alarm added.
+ * @param [out] alarm_id the id of the alarm added.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
* @param [in] trigger_at_time time interval to be triggered from now(sec). an alarm also will be expired at triggering time.
* @param [in] interval Interval between subsequent repeats of the alarm
* @param [in] bundle_data bundle which contains information about the destination.
- * @param [out] alarm_id the id of the alarm added.
+ * @param [out] alarm_id the id of the alarm added.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
...
{
- int result;
+ int result;
alarm_id_t alarm_id;
bundle *b=NULL;
* @param [in] trigger_at_time time interval to be triggered from now(sec). an alarm also will be expired at triggering time.
* @param [in] interval Interval between subsequent repeats of the alarm
* @param [in] noti notification handle to be posted when the alarm is expired
- * @param [out] alarm_id the id of the alarm added.
+ * @param [out] alarm_id the id of the alarm added.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
* @param [in] trigger_at_time time interval to be triggered from now(sec). an alarm also will be expired at triggering time.
* @param [in] interval Interval between subsequent repeats of the alarm
* @param [in] destination the packname of application that the alarm will be expired.
- * @param [out] alarm_id the id of the alarm added.
+ * @param [out] alarm_id the id of the alarm added.
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
* This function gets the information of the alarm assosiated with alarm_id to alarm_info. The application
* must allocate alarm_info before calling this function.
*
- * @param [in] alarm_id the id of the alarm
- * @param [out] alarm the buffer alarm informaiton will be copied to
+ * @param [in] alarm_id the id of the alarm
+ * @param [out] alarm the buffer alarm informaiton will be copied to
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
/**
* This function gets the scheduled time of the alarm assosiated with alarm_id.
*
- * @param [in] alarm_id the id of the alarm
- * @param [out] duetime the scheduled time of the alarm
+ * @param [in] alarm_id the id of the alarm
+ * @param [out] duetime the scheduled time of the alarm
*
* @return This function returns ALARMMGR_RESULT_SUCCESS on success or a negative number on failure.
*
* @see None
* @remark None.
*/
- int alarmmgr_get_next_duetime(alarm_id_t alarm_id, time_t *duetime);
+int alarmmgr_get_next_duetime(alarm_id_t alarm_id, time_t *duetime);
/**
* This function sets power RTC (which can power on the system).
* This function sets global
* @remarks The @a alarm_id must be id of alarm which will launch global application.
* The function returns an error (error code #ERR_ALARM_INVALID_ID) if it is not.
- * @param [in] alarm_id the id of the alarm
- * @param [in] global value to set global or not
+ * @param [in] alarm_id the id of the alarm
+ * @param [in] global value to set global or not
*
* @return @c ALARMMGR_RESULT_SUCCESS on success,
* otherwise a negative error value
/**
* This function gets global
- * @param [in] alarm_id the id of the alarm
- * @param [out] global Whether the alarm is global or not
+ * @param [in] alarm_id the id of the alarm
+ * @param [out] global Whether the alarm is global or not
*
* @return @c ALARMMGR_RESULT_SUCCESS on success,
* otherwise a negative error value
* @param [in] interval Interval between subsequent repeats of the alarm
* @param [in] handler The callback function invoked when the alarm is expired
* @param [in] user_param Parameters of callback function
- * @param [out] alarm_id The id of the alarm added
+ * @param [out] alarm_id The id of the alarm added
*
* @return @c ALARMMGR_RESULT_SUCCESS on success,
* otherwise a negative error value
* @param [in] interval Interval between subsequent repeats of the alarm
* @param [in] handler The callback function invoked when the alarm is expired
* @param [in] user_param Parameters of callback function
- * @param [out] alarm_id The id of the alarm added
+ * @param [out] alarm_id The id of the alarm added
*
* @return @c ALARMMGR_RESULT_SUCCESS on success,
* otherwise a negative error value