[libvirt] [PATCH 7/8] util: Reorder functions in virresctrl to minimize stubs

Martin Kletzander mkletzan at redhat.com
Wed Jan 31 11:55:49 UTC 2018


On Wed, Jan 31, 2018 at 10:41:45AM +0100, Martin Kletzander wrote:
>If we reorder the functions properly, we only need to have few stub functions
>for non-Linux platforms and it is also nicer to look at and read if they are in
>one place with only one preprocessor condition.  The order after this patch is:
>
>- Class allocation and Static functions (used by everything, static dependencies)
>
>- Linux-only functions
>
>- Non-Linux stubs
>
>- Exported functions (as they rely on all previous functions)
>

One of the functions (latest addition) needs to be moved due to non-Linux, I'll
move it, don't look at this patch, I'll send a v2, check the rest in the meatime
;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180131/5aeeca69/attachment-0001.sig>


More information about the libvir-list mailing list