]> git.puffer.fish Git - mirror/frr.git/commit
lib: add stream_fifo_init, more const
authorMark Stapp <mjs@voltanet.io>
Sun, 5 Apr 2020 15:48:05 +0000 (11:48 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 2 Jun 2020 12:20:54 +0000 (08:20 -0400)
commitf8c511cddb9bc54d190d8bfcded339ed7f3ec219
treee1d00bc5b3074c2a4f25ad9b7cbcaa91544b75b2
parentf981d44931ced06f594b33c54a27d6d843ad0379
lib: add stream_fifo_init, more const

Add utilities that init and deinit a stream_fifo - this lets us
use an on-stack fifo in some places, avoiding malloc'ing. Also
add const to some apis (no functional changes there).

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/stream.c
lib/stream.h