[libvirt] [PATCHv2 1/2] Split out most of virDBusIsServiceEnabled
Eric Blake
eblake at redhat.com
Mon Mar 3 19:55:00 UTC 2014
On 03/03/2014 08:47 AM, Ján Tomko wrote:
> Introduce virDBusIsServiceInList which can be used to call other
> methods for listing services (ListNames), not just ListActivatableNames.
Nice refactoring.
>
> No functional change.
> ---
> src/util/virdbus.c | 26 ++++++++++++++++----------
> 1 file changed, 16 insertions(+), 10 deletions(-)
>
>
> -/**
> - * virDBusIsServiceEnabled:
> - * @name: service name
> - *
> - * Retruns 0 if service is available, -1 on fatal error, or -2 if service is not available
Hmm, the "Retruns" typo...
> - */
> -int virDBusIsServiceEnabled(const char *name)
> +static int virDBusIsServiceInList(const char *listMethod, const char *name)
Here's your chance to use the two-line formatting:
static int
virDBusIs...(...)
>
> +/**
> + * virDBusIsServiceEnabled:
> + * @name: service name
> + *
> + * Retruns 0 if service is available, -1 on fatal error, or -2 if service is not available
...merely moved down. Please fix it while touching here :)
> + */
> +int virDBusIsServiceEnabled(const char *name)
Two-line formatting might be nice.
My findings are cosmetic, so ACK whether you address them or not.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140303/a21069f1/attachment-0001.sig>
More information about the libvir-list
mailing list