Go to the source code of this file.
Data Structures | |
struct | UbuntuHardwareAlarmWaitResult |
Typedefs | |
typedef UbuntuHardwareAlarmTimeReference | UHardwareAlarmTimeReference |
typedef UbuntuHardwareAlarmSleepBehavior | UHardwareAlarmSleepBehavior |
typedef UbuntuHardwareAlarmWaitResult | UHardwareAlarmWaitResult |
typedef struct UbuntuHardwareAlarm * | UHardwareAlarm |
Functions | |
UBUNTU_DLL_PUBLIC UHardwareAlarm | u_hardware_alarm_create () |
UBUNTU_DLL_PUBLIC void | u_hardware_alarm_ref (UHardwareAlarm alarm) |
UBUNTU_DLL_PUBLIC void | u_hardware_alarm_unref (UHardwareAlarm alarm) |
UBUNTU_DLL_PUBLIC UStatus | u_hardware_alarm_get_elapsed_real_time (UHardwareAlarm alarm, struct timespec *tz) |
UBUNTU_DLL_PUBLIC UStatus | u_hardware_alarm_set_timezone (UHardwareAlarm alarm, const struct timezone *tz) |
UBUNTU_DLL_PUBLIC UStatus | u_hardware_alarm_set_relative_to_with_behavior (UHardwareAlarm alarm, UHardwareAlarmTimeReference time_reference, UHardwareAlarmSleepBehavior behavior, const struct timespec *ts) |
UBUNTU_DLL_PUBLIC UStatus | u_hardware_alarm_wait_for_next_alarm (UHardwareAlarm alarm, UHardwareAlarmWaitResult *result) |
typedef struct UbuntuHardwareAlarm* UHardwareAlarm |
UBUNTU_DLL_PUBLIC UHardwareAlarm u_hardware_alarm_create | ( | ) |
Creates an instance and/or increments its refcount.
UBUNTU_DLL_PUBLIC UStatus u_hardware_alarm_get_elapsed_real_time | ( | UHardwareAlarm | alarm, |
struct timespec * | tz | ||
) |
Query the time that elapsed since boot, including deep sleeps.
UBUNTU_DLL_PUBLIC void u_hardware_alarm_ref | ( | UHardwareAlarm | alarm | ) |
Increments the instance's ref count.
UBUNTU_DLL_PUBLIC UStatus u_hardware_alarm_set_relative_to_with_behavior | ( | UHardwareAlarm | alarm, |
UHardwareAlarmTimeReference | time_reference, | ||
UHardwareAlarmSleepBehavior | behavior, | ||
const struct timespec * | ts | ||
) |
Sets and arms a timer.
UBUNTU_DLL_PUBLIC UStatus u_hardware_alarm_set_timezone | ( | UHardwareAlarm | alarm, |
const struct timezone * | tz | ||
) |
Reports a timezone change to kernel and HW.
UBUNTU_DLL_PUBLIC void u_hardware_alarm_unref | ( | UHardwareAlarm | alarm | ) |
Decrements the instance's ref count.
UBUNTU_DLL_PUBLIC UStatus u_hardware_alarm_wait_for_next_alarm | ( | UHardwareAlarm | alarm, |
UHardwareAlarmWaitResult * | result | ||
) |
Blocks until the next alarm occurs.