]> git.puffer.fish Git - mirror/frr.git/commit
lib: add "qobj" object-ID infrastructure
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 26 Sep 2016 15:30:30 +0000 (17:30 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Oct 2016 13:09:51 +0000 (09:09 -0400)
commit1bf9f0270c889d1131dcc01b1ea20ad054b60b85
tree978675c599272decb6b3714305fdf1e96c83efe9
parent1ba2a97af940168a4ca7673287272000f27f93ca
lib: add "qobj" object-ID infrastructure

This adds 64-bit random identifiers as "safe pointers" which are also
type-tracked / can have type-specific extension methods.

This will be used by both the CLI (to keep safe references while in
config editing mode) as well as the Cap'n Proto code (to hand out
pointers to the user in a safe way and add per-type handlers)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/Makefile.am
lib/command.c
lib/qobj.c [new file with mode: 0644]
lib/qobj.h [new file with mode: 0644]
tests/bgp_capability_test.c
tests/bgp_mp_attr_test.c
tests/bgp_mpath_test.c