diff options
author | Tom Gundersen <teg@jklm.no> | 2013-11-30 01:24:29 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-04 14:15:13 +0100 |
commit | 8cec01b9e9b7264639fd1fc0fe373ef4d5baaf49 (patch) | |
tree | 6db638964058da2a30a7839fc7fe03de9b3c3732 /src/systemd/sd-rtnl.h | |
parent | a02113d2ea96467dc9f1ec196d5f62a34dd99314 (diff) |
rtnl: add callback support
sd_rtnl_add_match allows you to add a callback function for when given types of
messages are received.
Diffstat (limited to 'src/systemd/sd-rtnl.h')
-rw-r--r-- | src/systemd/sd-rtnl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-rtnl.h b/src/systemd/sd-rtnl.h index 6db5d8a24..6cd179a26 100644 --- a/src/systemd/sd-rtnl.h +++ b/src/systemd/sd-rtnl.h @@ -57,6 +57,9 @@ int sd_rtnl_process(sd_rtnl *nl, sd_rtnl_message **ret); int sd_rtnl_wait(sd_rtnl *nl, uint64_t timeout); int sd_rtnl_flush(sd_rtnl *nl); +int sd_rtnl_add_match(sd_rtnl *nl, uint16_t match, sd_rtnl_message_handler_t c, void *userdata); +int sd_rtnl_remove_match(sd_rtnl *nl, uint16_t match, sd_rtnl_message_handler_t c, void *userdata); + int sd_rtnl_attach_event(sd_rtnl *nl, sd_event *e, int priority); int sd_rtnl_detach_event(sd_rtnl *nl); |