Daniel P. Berrange d91f3ef497 Santize the reporting of VIR_ERR_INVALID_ERROR
To ensure consistent error reporting of invalid arguments,
provide a number of predefined helper methods & macros.

 - An arg which must not be NULL:

   virCheckNonNullArgReturn(argname, retvalue)
   virCheckNonNullArgGoto(argname, label)

 - An arg which must be NULL

   virCheckNullArgGoto(argname, label)

 - An arg which must be positive (ie 1 or greater)

   virCheckPositiveArgGoto(argname, label)

 - An arg which must not be 0

   virCheckNonZeroArgGoto(argname, label)

 - An arg which must be zero

   virCheckZeroArgGoto(argname, label)

 - An arg which must not be negative (ie 0 or greater)

   virCheckNonNegativeArgGoto(argname, label)

* src/libvirt.c, src/libvirt-qemu.c,
  src/nodeinfo.c, src/datatypes.c: Update to use
  virCheckXXXX macros
* po/POTFILES.in: Add libvirt-qemu.c and virterror_internal.h
* src/internal.h: Define macros for checking invalid args
* src/util/virterror_internal.h: Define macros for reporting
  invalid args

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-05-28 16:47:25 +01:00
..
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00
2012-05-14 10:52:04 +08:00