]> git.proxmox.com Git - mirror_frr.git/commit
lib: Impelement the `*_del` list API.
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 23 Jul 2019 16:23:25 +0000 (12:23 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Wed, 31 Jul 2019 15:35:21 +0000 (11:35 -0400)
commitda098d78bb6fbdfb62444f0b0a7aac86875bf3c3
tree0d8121f06ed024857287880c5c68957184b1b3a7
parent2e6f2d6bc7edb7a75e24d1f8eb15a769d091f64e
lib: Impelement the `*_del` list API.

The new list api did not implement the `*_del` endpoint as
it was described in the docs here:

http://docs.frrouting.org/projects/dev-guide/en/latest/lists.html#c.Z_del

This patch implements the endpoints to return the object deleted if
found, otherwise NULL for all but the atomic lists.

The atomic list `*_del` code is marked as TODO and will remain undefined
for now.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/atomlist.h
lib/typerb.c
lib/typerb.h
lib/typesafe.c
lib/typesafe.h