[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 2/4] gobject: doc: add the version (if available) of APIs



---
 generator/gobject.ml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/generator/gobject.ml b/generator/gobject.ml
index e563610..8d5ac06 100644
--- a/generator/gobject.ml
+++ b/generator/gobject.ml
@@ -1109,6 +1109,10 @@ guestfs_session_close (GuestfsSession *session, GError **err)
       | Some alt ->
         pr " * Deprecated: In new code, use guestfs_session_%s() instead\n" alt
       );
+      (match version_added f with
+      | None -> ()
+      | Some version -> pr " * Since: %s\n" version
+      );
       pr " */\n";
 
       (* The function body *)
-- 
2.1.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]