summaryrefslogtreecommitdiff
path: root/lib/qobj.h
AgeCommit message (Collapse)Author
2016-12-09lib: make qobj NULL-safe/awareDavid Lamparter
reserve qobj ID 0 for a NULL pointer. (No change is needed for lookups since looking up 0 will simply fail and return NULL.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2016-12-01lib: replace MIT license with ISCDavid Lamparter
Since other parts (e.g. ldpd) use the ISC license, and the ISC license is just a simplified form of the MIT license, just move things over and reduce the number of different licenses we have in use here. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2016-10-07lib: add "qobj" object-ID infrastructureDavid Lamparter
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>