diff options
author | Tom Gundersen <teg@jklm.no> | 2013-11-14 16:22:51 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-11-17 23:12:27 +0100 |
commit | f882c247ad59776c3a7753bb963c1f8e2386cb79 (patch) | |
tree | fa042fb8ddef72319f7a66aa4c267fa8824c5995 /src/network/networkd-manager.c | |
parent | 8cd11a0f0f4ca05199e1166f6a07472b296f7455 (diff) |
networkd: make all calls async
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 8378e92a81..5000674bd9 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -208,3 +208,13 @@ int manager_udev_listen(Manager *m) { return 0; } + +int manager_rtnl_listen(Manager *m) { + int r; + + r = sd_rtnl_attach_event(m->rtnl, m->event, 0); + if (r < 0) + return r; + + return 0; +} |