HomeClusterLabs Projects

Refactor: libcrmcommon: Replace buffer_print() with GString

Description

Refactor: libcrmcommon: Replace buffer_print() with GString

buffer_print() is better than manually dealing with offsets and maxes
every time we need to append data to a string buffer, but it's still
cumbersome. We have to keep track of offset and max with every call.

Here we replace it with calls to GLib's string functions.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Sep 8 2022, 5:16 PM
root <root@boomstick.rhts.eng.bos.redhat.com>Committed on Sep 19 2022, 3:54 PM
Parents
rPdaefc570132d: Refactor: libcrmcommon: Inline more functions in xml.c
Branches
Unknown
Tags
Unknown

Event Timeline