libnl/include
roopa 30d862650b New cache manager add cache api
This patch is an attempt to add a new nl_cache_mngr_add_cache api
to allow adding an existing cache to cache manager.

Since the new api is similar to nl_cache_mngr_add
except for allocating the cache, the patch moves most of the
nl_cache_mngr_add code to nl_cache_mngr_add_cache and changes
nl_cache_mngr_add to call nl_cache_mngr_add_cache.

One use case for this api as pointed out by thomas would be to set cache
flags before associating the cache with a cache manager.

nl_cache_alloc_name("route/link", &cache);
nl_cache_set_flags(cache, NL_CACHE_AF_ITER);
nl_cache_mngr_add_cache(mngr, cache, ...);

Signed-off-by: Thomas Graf <tgraf@suug.ch>
2012-11-12 21:51:03 +01:00
..
linux Merge branch 'master' of https://github.com/rmfought/libnl 2012-10-26 12:48:22 +02:00
netlink New cache manager add cache api 2012-11-12 21:51:03 +01:00
Makefile.am Checkpoint before compilation attempt 2012-10-08 15:26:55 -07:00
netlink-generic.h Initial import 2007-09-15 01:28:01 +02:00
netlink-local.h Don't redefine offsetof when already defined by e.g. stddef.h 2011-06-21 11:33:44 +02:00
netlink-tc.h Unified TC API 2011-03-21 15:51:52 +01:00
netlink-types.h Add support for per cache flags 2012-11-12 21:51:02 +01:00