]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: buffer: Reimplement virBuffer internals using glib's GString
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 11:02:41 +0000 (13:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:35:34 +0000 (19:35 +0200)
commit244f906b166f039c27bf427f9fbce5bf6b95dede
treece227f07af6abdbf45f049e5a1d5b7a1c4037e2b
parentc721cc16703b7f990b0e36f30b26f39ca76224d7
util: buffer: Reimplement virBuffer internals using glib's GString

GString is surprisingly similar to what libvirt was doing painstakingly
manually. Yet it doesn't support the automatic indentation features we
use for XML so we rather keep those in form of virBuffer using GString
internally.

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