]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: buffer: Split getting of effective indent out of virBufferGetIndent
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 10:29:12 +0000 (12:29 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:35:34 +0000 (19:35 +0200)
commit673f5e04da5d0164d3798a3b9f83e21242e8b0f5
tree269fd91abb6e1f12b2d365291290bc1cdcd82d5b
parent32ff9baf68221114559fe9994e4e4cba1a0bc6c8
util: buffer: Split getting of effective indent out of virBufferGetIndent

The function basically does two very distinct things depending on a
bool. As a first step of conversion split out the case when @dynamic is
true and implement it as a new function and convert all callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virbuffer.c
src/util/virbuffer.h
tests/virbuftest.c