summaryrefslogtreecommitdiffstats
path: root/src/login/logind-seat-dbus.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-28 01:20:42 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-03-11 06:20:31 +0100
commit80d62d4f1aa62c03828e4cbe2c2dfb2a19765af8 (patch)
tree33e0ee22b8f8e36836a585cf09e89523a4d01266 /src/login/logind-seat-dbus.h
parentnetwork: make Request object take Manager* (diff)
downloadsystemd-80d62d4f1aa62c03828e4cbe2c2dfb2a19765af8.tar.xz
systemd-80d62d4f1aa62c03828e4cbe2c2dfb2a19765af8.zip
network: introduce request_call_netlink_async()
In most netlink handlers, we do the following, 1. decrease the message counter, 2. check the link state, 3. error handling, 4. update link state via e.g. link_check_ready(). The first two steps are mostly common, hence let's extract it. Moreover, this is not only extracting the common logic, but provide a strong advantage; `request_call_netlink_async()` assigns the relevant Request object to the userdata of the netlink slot, and the request object has full information about the message we sent. Hence, in the future, netlink handler can print more detailed error message. E.g. when an address is failed to configure, then currently we only show an address is failed to configure, but with this commit, potentially we can show which address is failed explicitly. This does not change such error handling yet. But let's do that later.
Diffstat (limited to 'src/login/logind-seat-dbus.h')
0 files changed, 0 insertions, 0 deletions