/* libhw/host_alarmclock.h - implementation for hosted glibc * * Copyright (C) 2024-2025 Luke T. Shumaker * SPDX-License-Identifier: AGPL-3.0-or-later */ #ifndef _LIBHW_HOST_ALARMCLOCK_H_ #define _LIBHW_HOST_ALARMCLOCK_H_ #include /* for bool */ #include /* for clockid_t, timer_t */ #include #include struct hostclock { clockid_t clock_id; BEGIN_PRIVATE(LIBHW_HOST_ALARMCLOCK_H) bool initialized; timer_t timer_id; struct alarmclock_trigger *queue; END_PRIVATE(LIBHW_HOST_ALARMCLOCK_H) }; LO_IMPLEMENTATION_H(alarmclock, struct hostclock, hostclock) #endif /* _LIBHW_HOST_ALARMCLOCK_H_ */