Hi,
this patch serie adds a new GUID type in the generator, which would do
the same as String, but also validating (just in the C output) the
passed GUID string.
This allows to reject invalid GUIDs before passing them to low-level
tools.
Pino Toscano (4):
utils: add a function to validate a GUID string
generator: add a GUID parameter type
generator: generate code for parameter validation
actions/part_set_gpt_type: set type of "guid" parameter as "GUID"
(RHBZ#1008417).
generator/actions.ml | 11 +++++++++-
generator/bindtests.ml | 3 ++-
generator/c.ml | 54 ++++++++++++++++++++++++++++++++++++++++++++----
generator/csharp.ml | 6 ++++--
generator/daemon.ml | 4 ++--
generator/erlang.ml | 3 ++-
generator/fish.ml | 11 ++++++----
generator/gobject.ml | 8 ++++---
generator/golang.ml | 9 +++++---
generator/haskell.ml | 8 +++----
generator/java.ml | 15 +++++++++-----
generator/lua.ml | 6 +++---
generator/ocaml.ml | 9 +++++---
generator/perl.ml | 8 +++----
generator/php.ml | 12 ++++++-----
generator/python.ml | 12 +++++------
generator/ruby.ml | 4 ++--
generator/tests_c_api.ml | 6 ++++--
generator/types.ml | 6 ++++++
generator/utils.ml | 3 ++-
generator/xdr.ml | 2 +-
src/guestfs-internal.h | 3 +++
src/test-utils.c | 14 +++++++++++++
src/utils.c | 44 +++++++++++++++++++++++++++++++++++++++
24 files changed, 204 insertions(+), 57 deletions(-)
--
1.8.3.1