]> granicus.if.org Git - libnl/commit
genl: Support registration of families without depending on caches
authorThomas Graf <tgraf@redhat.com>
Fri, 1 Jun 2012 09:48:08 +0000 (11:48 +0200)
committerThomas Graf <tgraf@redhat.com>
Fri, 1 Jun 2012 09:48:08 +0000 (11:48 +0200)
commitfaef2fa45f67da810415f4dd4f0ce62d70965ad4
tree2d14c8d9788b4468cb3eb78debd377581f6aa920
parent3656b6f908f966f329fb727a805ee46934c360d0
genl: Support registration of families without depending on caches

Introduces the functions genl_register_family() and
genl_unregister_family() to register a Generic Netlink family
which does not implement a cachable type.

API users can direct received messages into genl_handle_msg() which
will validate the messages and call the callback functions defined
in the commands definition.

See test/test-genl.c for an example on how to use it.
include/netlink/genl/mngt.h
lib/genl/mngt.c
src/nl-list-caches.c
tests/test-genl.c