summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-06 16:04:36 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-06 16:04:36 +0100
commit18ee38e1eac132b91706771285d1764641179804 (patch)
tree1cb4cb952b4a8d04d2d73eb796fbb3e82d8b58f6
parentf351a144d72ba3c86d49a259a89cea64f9639875 (diff)
downloadlibguestfs-18ee38e1eac132b91706771285d1764641179804.tar.gz
libguestfs-18ee38e1eac132b91706771285d1764641179804.tar.xz
libguestfs-18ee38e1eac132b91706771285d1764641179804.zip
docs: Move deprecation notice up to the top in C man page.
-rw-r--r--generator/generator_c.ml9
1 files changed, 5 insertions, 4 deletions
diff --git a/generator/generator_c.ml b/generator/generator_c.ml
index c9bfb1fc..5460a35f 100644
--- a/generator/generator_c.ml
+++ b/generator/generator_c.ml
@@ -180,6 +180,11 @@ and generate_actions_pod () =
generate_prototype ~extern:false ~indent:" " ~handle:"g" name style;
pr "\n\n";
+ (match deprecation_notice ~prefix:"guestfs_" flags with
+ | None -> ()
+ | Some txt -> pr "%s\n\n" txt
+ );
+
let uc_shortname = String.uppercase shortname in
if optargs <> [] then (
pr "You may supply a list of optional arguments to this call.\n";
@@ -255,10 +260,6 @@ I<The caller must free the returned buffer after use>.\n\n"
pr "This function takes a key or passphrase parameter which
could contain sensitive material. Read the section
L</KEYS AND PASSPHRASES> for more information.\n\n";
- (match deprecation_notice ~prefix:"guestfs_" flags with
- | None -> ()
- | Some txt -> pr "%s\n\n" txt
- );
(match lookup_api_version name with
| Some version -> pr "(Added in %s)\n\n" version
| None -> ()