Updated: October 28, 2024 |
Query a timer
#include <gestures/timer.h>
int gesture_timer_query(struct gesture_base *gesture, int timer_id, int *pending, uint64_t *expiry)
This function returns information about the timer. If the timer is valid, the return value is set to 0, the parameter pending is set to the timer's current pending state (destroyed timer will result in a -1 return value), and expiry is set to the timer's expiry time.
0 if the timer is valid, -1 otherwise.