mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
build: adjust to new libsystemd-event API
The individual timer-sources were replaced by a unified timer-source. Adjust to that. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
37c2169c9e
commit
0f9ca6e7b8
4 changed files with 39 additions and 30 deletions
|
|
@ -252,12 +252,13 @@ static void schedule_timeout(sd_event_source **out,
|
|||
if (r < 0)
|
||||
cli_vERR(r);
|
||||
} else {
|
||||
r = sd_event_add_monotonic(cli_event,
|
||||
out,
|
||||
rel_usec,
|
||||
0,
|
||||
timeout_fn,
|
||||
data);
|
||||
r = sd_event_add_time(cli_event,
|
||||
out,
|
||||
CLOCK_MONOTONIC,
|
||||
rel_usec,
|
||||
0,
|
||||
timeout_fn,
|
||||
data);
|
||||
if (r < 0)
|
||||
cli_vERR(r);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue