1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include <stdbool.h>
5 
6 #include "sd-event.h"
7 
8 int event_reset_time(
9                 sd_event *e,
10                 sd_event_source **s,
11                 clockid_t clock,
12                 uint64_t usec,
13                 uint64_t accuracy,
14                 sd_event_time_handler_t callback,
15                 void *userdata,
16                 int64_t priority,
17                 const char *description,
18                 bool force_reset);
19 int event_reset_time_relative(
20                 sd_event *e,
21                 sd_event_source **s,
22                 clockid_t clock,
23                 uint64_t usec,
24                 uint64_t accuracy,
25                 sd_event_time_handler_t callback,
26                 void *userdata,
27                 int64_t priority,
28                 const char *description,
29                 bool force_reset);
30 int event_source_disable(sd_event_source *s);
31 int event_source_is_enabled(sd_event_source *s);
32 
33 int event_add_time_change(sd_event *e, sd_event_source **ret, sd_event_io_handler_t callback, void *userdata);
34