]> granicus.if.org Git - libnl/commit
Allow to pass multiple group values to membership functions
authorHolger Eitzenberger <heitzenberger@astaro.com>
Mon, 1 Dec 2008 13:38:06 +0000 (14:38 +0100)
committerThomas Graf <tgr@plip.localdomain>
Wed, 3 Dec 2008 18:54:21 +0000 (19:54 +0100)
commit72aa861c48b6876e94d07470025155a6924a6983
tree452e2614c83b91fb3791e08bf78e22388e584828
parent37f9855f4c02960b483d4d992771837c5906405e
Allow to pass multiple group values to membership functions

Instead of calling the membership functions several times it is
helpfull to extend the API and make the single group functions a
special case.

The value 0 (NFNLGRP_NONE) terminates this list.

Example use:

  nl_socket_add_memberships(sock, group_1, group_2, 0);
  nl_socket_drop_memberships(sock, group_1, group_2, 0);

Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
include/netlink/socket.h
lib/socket.c