summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2012-11-12 21:59:54 +0100
committerThomas Graf <tgraf@suug.ch>2012-11-12 21:59:54 +0100
commitce72565f2649347103219056b9b5ae7c18247087 (patch)
treea0d3905e8ab9b44db3fa686205c5af77dcee2f0c
parent0bd14aa2d689604b22b1d9f87a57c0e09c21b522 (diff)
downloadlibnl-ce72565f2649347103219056b9b5ae7c18247087.tar.gz
cache: Move NL_CACHE_AF_ITER to <netlink/cache.h>
<netlink/cache-api.h> alreay requires <netlink/cache.h> anyway. Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--include/netlink/cache-api.h5
-rw-r--r--include/netlink/cache.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/include/netlink/cache-api.h b/include/netlink/cache-api.h
index ccb4098..dd42671 100644
--- a/include/netlink/cache-api.h
+++ b/include/netlink/cache-api.h
@@ -169,11 +169,6 @@ struct nl_parser_param
};
/**
- * Cache flags
- */
-#define NL_CACHE_AF_ITER 0x0001
-
-/**
* Cache Operations
*
* This structure defines the characterstics of a cache type. It contains
diff --git a/include/netlink/cache.h b/include/netlink/cache.h
index 7de389d..1eb1427 100644
--- a/include/netlink/cache.h
+++ b/include/netlink/cache.h
@@ -24,6 +24,12 @@ extern "C" {
struct nl_cache;
+/**
+ * @ingroup cache
+ * Explicitely iterate over all address families when updating the cache
+ */
+#define NL_CACHE_AF_ITER 0x0001
+
/* Access Functions */
extern int nl_cache_nitems(struct nl_cache *);
extern int nl_cache_nitems_filter(struct nl_cache *,