summaryrefslogtreecommitdiff
path: root/include/rtnl.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-04 16:13:35 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-04 16:13:35 +0100
commit3ff7262ed26840a697c914a7905543d6c3efac6c (patch)
treecdf14b7aa64e387479a051307026a8883861e598 /include/rtnl.h
parent5ae55853fca4017221895b03cece096e361dac36 (diff)
downloadconnman-3ff7262ed26840a697c914a7905543d6c3efac6c.tar.gz
connman-3ff7262ed26840a697c914a7905543d6c3efac6c.tar.bz2
connman-3ff7262ed26840a697c914a7905543d6c3efac6c.zip
Add support for RTNL newlink watches
Diffstat (limited to 'include/rtnl.h')
-rw-r--r--include/rtnl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rtnl.h b/include/rtnl.h
index 758e5497..c78556b9 100644
--- a/include/rtnl.h
+++ b/include/rtnl.h
@@ -32,6 +32,13 @@ extern "C" {
* @short_description: Functions for registering RTNL modules
*/
+typedef void (* connman_rtnl_link_cb_t) (unsigned flags, unsigned change,
+ void *user_data);
+
+extern unsigned int connman_rtnl_add_newlink_watch(int index,
+ connman_rtnl_link_cb_t callback, void *user_data);
+extern void connman_rtnl_remove_watch(unsigned int id);
+
#define CONNMAN_RTNL_PRIORITY_LOW -100
#define CONNMAN_RTNL_PRIORITY_DEFAULT 0
#define CONNMAN_RTNL_PRIORITY_HIGH 100