diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-09-14 06:01:38 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-09-14 06:01:38 -0700 |
commit | e36d8124e142f27d99d16575b0122dc4401794cc (patch) | |
tree | c066e8899733104b97e4f08c693ff0c369c194f9 /include | |
parent | 8e8f874898bf2f7d05440069b5b906bb46dfbb4f (diff) | |
download | connman-e36d8124e142f27d99d16575b0122dc4401794cc.tar.gz connman-e36d8124e142f27d99d16575b0122dc4401794cc.tar.bz2 connman-e36d8124e142f27d99d16575b0122dc4401794cc.zip |
Add support for monitoring operation state from plugins
Diffstat (limited to 'include')
-rw-r--r-- | include/rtnl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rtnl.h b/include/rtnl.h index 01f4d2f8..1c3bd048 100644 --- a/include/rtnl.h +++ b/include/rtnl.h @@ -32,11 +32,19 @@ extern "C" { * @short_description: Functions for registering RTNL modules */ + +typedef void (* connman_rtnl_operstate_cb_t) (unsigned char operstate, + void *user_data); + typedef void (* connman_rtnl_link_cb_t) (unsigned flags, unsigned change, void *user_data); +unsigned int connman_rtnl_add_operstate_watch(int index, + connman_rtnl_operstate_cb_t callback, void *user_data); + unsigned int connman_rtnl_add_newlink_watch(int index, connman_rtnl_link_cb_t callback, void *user_data); + void connman_rtnl_remove_watch(unsigned int id); #define CONNMAN_RTNL_PRIORITY_LOW -100 |