ai_prog_reminder.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*****************************************************************************
  2. ** ai_prog_reminder.h: AL Layer Program Reminder Internal Interface
  3. **
  4. ** Description: This file is only used by AL modules and the application
  5. ** can't access it directly
  6. **
  7. ** Copyright(c) 2011 Sunmedia Technologies - All Rights Reserved
  8. **
  9. ** Author : anlzhao
  10. **
  11. ** $Id: ai_datasaving.h 1901 2011-01-22 05:47:03Z liang.wu_c1 $
  12. *****************************************************************************/
  13. #ifndef AI_PR_REMIDNER_H_
  14. #define AI_PR_REMIDNER_H_
  15. #include "al_basictypes.h"
  16. /* NVM Message Queue Size , NVMSTORE_URGENT_Q_SIZE should be set 0 coz this Data saving task
  17. * is not supposed to deal with urgent msg by the current timing-oriented mechanism.
  18. */
  19. #define SLEEP_FOR_PE_FINISH_TIME 200
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /************************************************************************
  24. ** name :AI_PR_HandleTrigger()
  25. **
  26. ** description : Handle the remider status after the trigger.
  27. **
  28. ** input parameters :id - Schedular id
  29. **
  30. ** output parameters :None
  31. **
  32. ** return type : AL_Return_t
  33. ************************************************************************/
  34. AL_Return_t AI_PR_HandleTrigger( AL_SCH_sched_id_t id );
  35. /************************************************************************
  36. ** name :AI_PR_HandleAction()
  37. **
  38. ** description : Handle the whether reminder should be kept or removed.
  39. **
  40. ** input parameters :id - Schedular id
  41. **
  42. ** output parameters :None.
  43. **
  44. ** return type : AL_Return_t
  45. ************************************************************************/
  46. AL_Return_t AI_PR_HandleAction( AL_SCH_sched_id_t id );
  47. /************************************************************************
  48. ** name : AI_PR_HandleSrvDelete()
  49. **
  50. ** description : This API modifies the scheduled event with new information
  51. **
  52. ** input parameters : handle - specify which service is to remove from reminder
  53. **
  54. ** output parameters : none
  55. **
  56. ** return type : AL_Return_t
  57. ************************************************************************/
  58. AL_Return_t AI_PR_HandleSrvDelete(AL_RecHandle_t handle);
  59. /*****************************************************************************
  60. ** FUNCTION : AI_PR_Term
  61. **
  62. ** DESCRIPTION :
  63. ** This function is used to terminate program reminder module.
  64. **
  65. ** PARAMETERS :
  66. ** None
  67. **
  68. ** RETURN VALUES:
  69. ** al_true is storing is in process
  70. ** al_false if storing is not in process
  71. *****************************************************************************/
  72. AL_Return_t AI_PR_Term(al_void);
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #endif /* AI_DATASAVING_H_INCLUDED */
  77. /*****************************************************************************
  78. ** $Rev: 1901 $
  79. **
  80. *****************************************************************************/