On 09/06/2012 08:01 AM, Peter Krempa wrote: > This patch adds a helper to deal with assigning values to > virTypedParameter structures from strings. The helper parses the value > from the string and assigns it to the corresponding union value. > --- > New in series.
> + case VIR_TYPED_PARAM_ULLONG:
> + if (virStrToLong_ull(val, NULL, 10, ¶m->value.ul) < 0) {
> + virReportError(VIR_ERR_INVALID_ARG,
> + _("Invalid value for field '%s': "
> + "expected long long"),
expected unsigned long long
--
Eric Blake [email protected] +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvir-list
