[libvirt] [PATCHv2 4/6] util: add new file for virTypedParameter utils

2012-01-19 Thread Eric Blake
Preparation for another patch that refactors common patterns into the new file for fewer lines of code overall. * src/util/util.h (virTypedParameterArrayClear): Move... * src/util/virtypedparam.h: ...to new file. (virTypedParameterArrayValidate, virTypedParameterAssign): New prototypes. *

Re: [libvirt] [PATCHv2 4/6] util: add new file for virTypedParameter utils

2012-01-19 Thread Daniel P. Berrange
On Thu, Jan 19, 2012 at 11:44:44AM -0700, Eric Blake wrote: Preparation for another patch that refactors common patterns into the new file for fewer lines of code overall. * src/util/util.h (virTypedParameterArrayClear): Move... * src/util/virtypedparam.h: ...to new file.

Re: [libvirt] [PATCHv2 4/6] util: add new file for virTypedParameter utils

2012-01-19 Thread Eric Blake
On 01/19/2012 12:01 PM, Daniel P. Berrange wrote: + +VIR_ENUM_DECL(virTypedParameter) +VIR_ENUM_IMPL(virTypedParameter, VIR_TYPED_PARAM_STRING + 1, I'm slowly coming to the view that we should juust add _LAST to every single one of our public enums. But perhaps have them disabled by

Re: [libvirt] [PATCHv2 4/6] util: add new file for virTypedParameter utils

2012-01-19 Thread Daniel P. Berrange
On Thu, Jan 19, 2012 at 01:16:01PM -0700, Eric Blake wrote: On 01/19/2012 12:01 PM, Daniel P. Berrange wrote: + +VIR_ENUM_DECL(virTypedParameter) +VIR_ENUM_IMPL(virTypedParameter, VIR_TYPED_PARAM_STRING + 1, I'm slowly coming to the view that we should juust add _LAST to every single