]> git.proxmox.com Git - mirror_frr.git/commit
lib: add new extensible memory-type handling
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 27 May 2015 01:45:30 +0000 (03:45 +0200)
committerChristian Franke <nobody@nowhere.ws>
Mon, 19 Sep 2016 15:52:05 +0000 (17:52 +0200)
commit3b4cd7837562cd78fe80bde94f5aa6729b2f755d
tree236c4d7616d4e5aacede3398ec2975b734929874
parent6ba26ad5d2bc863917914db0d8354eb834bba264
lib: add new extensible memory-type handling

This rewrites Quagga's memory per-type allocation counting, without
using a fixed global list of types.  Instead, source files can declare
memory types which get handled through constructor functions called by
the dynamic linker during startup.

Acked-by: Vincent JARDIN <vincent.jardin@6wind.com>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
[DL: v3: forgot "nonnull" attribute on XFREE]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/Makefile.am
lib/log.c
lib/memory.c [new file with mode: 0644]
lib/memory.h
lib/memory_vty.c
lib/memory_vty.h