mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
Update to new libsystemd API
The upstream API changed (isn't released, yet!). Update our code to use the new systemd-211 API. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
3bd83f1572
commit
06be8854c5
7 changed files with 135 additions and 49 deletions
|
@ -248,10 +248,10 @@ static int manager_new(struct manager **out)
|
|||
sigprocmask(SIG_BLOCK, &mask, NULL);
|
||||
|
||||
r = sd_event_add_signal(m->event,
|
||||
&m->sigs[i],
|
||||
sigs[i],
|
||||
manager_signal_fn,
|
||||
m,
|
||||
&m->sigs[i]);
|
||||
m);
|
||||
if (r < 0) {
|
||||
log_vERR(r);
|
||||
goto error;
|
||||
|
@ -285,11 +285,11 @@ static int manager_new(struct manager **out)
|
|||
}
|
||||
|
||||
r = sd_event_add_io(m->event,
|
||||
&m->udev_mon_source,
|
||||
udev_monitor_get_fd(m->udev_mon),
|
||||
EPOLLHUP | EPOLLERR | EPOLLIN,
|
||||
manager_udev_fn,
|
||||
m,
|
||||
&m->udev_mon_source);
|
||||
m);
|
||||
if (r < 0) {
|
||||
log_vERR(r);
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue