Skip to content

Commit

Permalink
Remove src/api-support and generate this information from actions add…
Browse files Browse the repository at this point in the history
…ed field.
  • Loading branch information
rwmjones committed May 26, 2015
1 parent b59c81d commit 9c77396
Show file tree
Hide file tree
Showing 758 changed files with 11 additions and 393,115 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ maintainer-check-extra-dist:
git ls-files | sort > tmp/gitfiles
diff -ur tmp/tarfiles tmp/gitfiles | \
grep '^\+' | \
grep -v '^\+src/api-support/[0-9]' | \
grep -v '^\+intltool-.*\.in' | \
grep -v '^\+.gitmodules' | \
grep -v '^\+.gnulib' ||:
Expand Down
3 changes: 0 additions & 3 deletions generator/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ include $(top_srcdir)/subdir-rules.mk
sources = \
actions.ml \
actions.mli \
api_versions.ml \
api_versions.mli \
bindtests.ml \
c.ml \
checks.ml \
Expand Down Expand Up @@ -64,7 +62,6 @@ objects = \
utils.cmo \
actions.cmo \
structs.cmo \
api_versions.cmo \
optgroups.cmo \
prepopts.cmo \
events.cmo \
Expand Down
43 changes: 0 additions & 43 deletions generator/api_versions.ml

This file was deleted.

32 changes: 0 additions & 32 deletions generator/api_versions.mli

This file was deleted.

21 changes: 10 additions & 11 deletions generator/c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ open Types
open Utils
open Pr
open Docstrings
open Api_versions
open Optgroups
open Actions
open Structs
Expand Down Expand Up @@ -302,10 +301,8 @@ 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 lookup_api_version ("guestfs_" ^ c_name) with
| Some version -> pr "(Added in %s)\n\n" version
| None -> ()
);
let version = api_version f.added in
pr "(Added in %s)\n\n" version;

(* Handling of optional argument variants. *)
if optargs <> [] then (
Expand All @@ -325,7 +322,7 @@ L</KEYS AND PASSPHRASES> for more information.\n\n";
pr "See L</CALLS WITH OPTIONAL ARGUMENTS>.\n\n";
)

and generate_actions_pod_back_compat_entry { name = name;
and generate_actions_pod_back_compat_entry { name = name; added = added;
style = ret, args, _ } =
pr "=head2 guestfs_%s\n\n" name;
generate_prototype ~extern:false ~indent:" " ~handle:"g"
Expand All @@ -337,11 +334,13 @@ and generate_actions_pod_back_compat_entry { name = name;
pr "L</guestfs_%s_opts> with no optional arguments.\n" name;
pr "\n";

(match lookup_api_version ("guestfs_" ^ name) with
| Some version -> pr "(Added in %s)\n\n" version
| None -> ()
);
pr "\n"
let version = api_version added in
pr "(Added in %s)\n\n\n" version;

and api_version = function
| (0, 0, release) -> sprintf "0.%d" release
| ((0|1) as major, minor, release) -> sprintf "%d.%d.%d" major minor release
| _ -> assert false

and generate_structs_pod () =
generate_header PODStyle GPLv2plus;
Expand Down
4 changes: 0 additions & 4 deletions generator/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ open Printf
open Pr
open Actions
open Structs
open Api_versions
open Types

open C
Expand Down Expand Up @@ -80,9 +79,6 @@ Run it from the top source directory using the command
perror "lock: BUGS" exn;
exit 1);

(* Read the API versions file. *)
load_api_versions "src/api-support/added";

output_to "src/guestfs_protocol.x" generate_xdr;
output_to "src/guestfs.h" generate_guestfs_h;
output_to "src/guestfs-internal-actions.h" generate_internal_actions_h;
Expand Down
5 changes: 1 addition & 4 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ EXTRA_DIST = \
MAX_PROC_NR \
libguestfs.3 \
libguestfs.pc.in \
guestfs.pod \
api-support/added \
api-support/README \
api-support/update-from-tarballs.sh
guestfs.pod

include_HEADERS = guestfs.h

Expand Down
31 changes: 0 additions & 31 deletions src/api-support/0.3

This file was deleted.

48 changes: 0 additions & 48 deletions src/api-support/0.4

This file was deleted.

48 changes: 0 additions & 48 deletions src/api-support/0.5

This file was deleted.

48 changes: 0 additions & 48 deletions src/api-support/0.6

This file was deleted.

Loading

0 comments on commit 9c77396

Please sign in to comment.