Alarm / inc /

data.h

  1. /*
  2. * Copyright (c) 2016 Samsung Electronics Co., Ltd
  3. *
  4. * Licensed under the Flora License, Version 1.1 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://floralicense.org/license/
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #if !defined(_DATA_H)
  18. #define _DATA_H
  19.  
  20. #include <time.h>
  21. #include <app_control.h>
  22.  
  23. typedef void (*data_alarm_callback_t)(void);
  24. typedef void (*data_alarm_scheduled_t)(time_t t);
  25.  
  26. void data_initialize(void);
  27. void data_finalize(void);
  28. void data_handle_app_control(app_control_h app_control);
  29. void data_set_alarms_callbacks(data_alarm_scheduled_t scheduled_alarm_callback, data_alarm_callback_t ontime_alarm_callback, data_alarm_callback_t recurring_alarm_callback);
  30.  
  31. #endif