[Libguestfs] [PATCH 05/16] gobject: Include explicit types for all parameters

Matthew Booth mbooth at redhat.com
Tue Mar 27 15:00:47 UTC 2012


---
 generator/generator_gobject.ml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/generator/generator_gobject.ml b/generator/generator_gobject.ml
index 7bac45e..c31f6d8 100644
--- a/generator/generator_gobject.ml
+++ b/generator/generator_gobject.ml
@@ -645,7 +645,12 @@ let generate_gobject_c_methods () =
         fun argt ->
           pr " * @%s:" (name_of_argt argt);
           (match argt with
-          | Bool _ | Int _ | Int64 _ -> ()
+          | Bool _ ->
+            pr " (type gboolean):"
+          | Int _ ->
+            pr " (type gint32):"
+          | Int64 _ ->
+            pr " (type gint64):"
           | String _ | Key _ ->
             pr " (transfer none) (type utf8):"
           | OptString _ ->
-- 
1.7.7.6




More information about the Libguestfs mailing list