]> git.proxmox.com Git - mirror_frr.git/commit - lib/linklist.c
lib: implement utility function API which does the following
authorsaravanank <saravanank@vmware.com>
Fri, 3 May 2019 13:57:57 +0000 (06:57 -0700)
committersaravanank <saravanank@vmware.com>
Wed, 15 May 2019 04:40:50 +0000 (21:40 -0700)
commit9b68e496042b7fc8bf2f27671fbfbc6f02541a17
tree699ce1e408e8b6cb6e6b49298f1bdfc176bb415f
parenta5164e9790c55b6534670a60e27813da9262a3b6
lib: implement utility function API which does the following

1. listnode_add_sort_nodup - This API adds to list only if no duplicate
    element available in the list. returns true/false
2. list_filter_out_nodes - This API deletes the nodes which satisfy the given
    condition. condition is passed as a func ptr in
    API. This function takes in node data(void ptr).

Signed-off-by: Saravanan K <saravanank@vmware.com>
lib/linklist.c
lib/linklist.h