summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-10-14 13:44:13 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-10-14 13:44:13 +0200
commit31d8cfc6648686d832b2df63e3bb68bf23f45762 (patch)
tree47fb190cdc2a0261ef5fc5182a77cb0e42b43b37 /include
parenta2b65153ec2059d23ceb88d206518da687883ebb (diff)
downloadconnman-31d8cfc6648686d832b2df63e3bb68bf23f45762.tar.gz
connman-31d8cfc6648686d832b2df63e3bb68bf23f45762.tar.bz2
connman-31d8cfc6648686d832b2df63e3bb68bf23f45762.zip
Add generic RTNL framework
Diffstat (limited to 'include')
-rw-r--r--include/rtnl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/rtnl.h b/include/rtnl.h
index f167a16d..57e8e07c 100644
--- a/include/rtnl.h
+++ b/include/rtnl.h
@@ -26,6 +26,25 @@
extern "C" {
#endif
+/**
+ * SECTION:rtnl
+ * @title: RTNL premitives
+ * @short_description: Functions for registering RTNL modules
+ */
+
+#define CONNMAN_RTNL_PRIORITY_LOW -100
+#define CONNMAN_RTNL_PRIORITY_DEFAULT 0
+#define CONNMAN_RTNL_PRIORITY_HIGH 100
+
+struct connman_rtnl {
+ const char *name;
+ int priority;
+ void (*link_flags) (int index, int flags);
+};
+
+extern int connman_rtnl_register(struct connman_rtnl *rtnl);
+extern void connman_rtnl_unregister(struct connman_rtnl *rtnl);
+
#ifdef __cplusplus
}
#endif