[Pkg-libvirt-commits] [libguestfs] 14/19: generator: Check 'added' field is set for each API.

Hilko Bengen bengen at moszumanska.debian.org
Sun Nov 1 17:12:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.29.44
in repository libguestfs.

commit b59c81d9e8deb70c9925a2dc0eaf8f30c89276da
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue May 26 09:10:32 2015 +0100

    generator: Check 'added' field is set for each API.
---
 generator/checks.ml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/generator/checks.ml b/generator/checks.ml
index 10910fb..e02dcab 100644
--- a/generator/checks.ml
+++ b/generator/checks.ml
@@ -60,6 +60,15 @@ let () =
 *)
   ) (all_functions @ fish_commands);
 
+  (* Check added field was set to something. *)
+  List.iter (
+    function
+    | { name = name; visibility = VPublic|VPublicNoFish|VDebug;
+        added = (-1, _, _) } ->
+       failwithf "function %s has no 'added' (version when added) field" name
+    | _ -> ()
+  ) all_functions;
+
   (* Check function parameter/return names. *)
   List.iter (
     fun { name = name; style = style } ->

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list