• M
    util: Introduce virBufferAddBuffer · 83c5467e
    Michal Privoznik 提交于
    This API joins the following two lines:
    
    char *s = virBufferContentAndReset(buf1);
    virBufferAdd(buf2, s, -1);
    
    into one:
    
    virBufferAddBuffer(buf2, buf1);
    
    With one exception: there's no re-indentation applied to @buf1.
    The idea is, that in general both can have different indentation
    (like the test I'm adding proves)
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    83c5467e
virbuftest.c 9.3 KB