Re: [libvirt] [PATCH v4 2/3] virsh: Implement new table API for virsh list

2018-08-23 Thread Michal Privoznik
On 08/22/2018 07:42 PM, Simon Kobyda wrote: > Instead of printing it straight in virsh, it creates table struct > which is filled with header and rows(domains). It allows us to know > more about table before printing to calculate alignment right. > > Signed-off-by: Simon Kobyda > --- >

[libvirt] [PATCH v4 2/3] virsh: Implement new table API for virsh list

2018-08-22 Thread Simon Kobyda
Instead of printing it straight in virsh, it creates table struct which is filled with header and rows(domains). It allows us to know more about table before printing to calculate alignment right. Signed-off-by: Simon Kobyda --- tests/virshtest.c| 14 ++--