]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
cache: Move nl_cache_ops_set_flags() to cache_mngt.c
authorThomas Graf <tgraf@suug.ch>
Mon, 12 Nov 2012 21:07:39 +0000 (22:07 +0100)
committerThomas Graf <tgraf@suug.ch>
Mon, 12 Nov 2012 21:07:39 +0000 (22:07 +0100)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/cache.c
lib/cache_mngt.c

index 6a0e71ac33693cd08962d7021ad9ddf1ca974fcb..b776abfcfe2d57194c8db80d2a452feb3128c70c 100644 (file)
@@ -566,16 +566,6 @@ void nl_cache_set_arg2(struct nl_cache *cache, int arg)
         cache->c_iarg2 = arg;
 }
 
-/**
- * Set cache ops flags
- * @arg ops            Cache ops
- * @arg arg            flags
- */
-void nl_cache_ops_set_flags(struct nl_cache_ops *ops, unsigned int flags)
-{
-       ops->co_flags |= flags;
-}
-
 /**
  * Set cache flags
  * @arg cache          Cache
index 66914549a9a19a5202a5754cda294b266d564bcd..fa1ac22c67750fa8fc18734d55ec936a875a58fa 100644 (file)
@@ -129,6 +129,19 @@ void nl_cache_ops_foreach(void (*cb)(struct nl_cache_ops *, void *), void *arg)
                cb(ops, arg);
 }
 
+/**
+ * Set default flags for caches of this type
+ * @arg ops            Cache ops
+ * @arg flags          Flags to set
+ *
+ * The cache operation flags will be derived to all caches allocates
+ * based on this set of cache operations.
+ */
+void nl_cache_ops_set_flags(struct nl_cache_ops *ops, unsigned int flags)
+{
+       ops->co_flags |= flags;
+}
+
 /**
  * Register a set of cache operations
  * @arg ops            cache operations