Since it contains prototypes of functions and common macros, just rename it so it will be used as proper general header for multiple sources in the future. Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx> --- MANIFEST | 2 +- libvirt/Makefile.in | 2 +- libvirt/README | 8 +++----- libvirt/generator.pl | 2 +- libvirt/{libvirt_c_prologue.c => libvirt_c.h} | 0 5 files changed, 6 insertions(+), 8 deletions(-) rename libvirt/{libvirt_c_prologue.c => libvirt_c.h} (100%) diff --git a/MANIFEST b/MANIFEST index e969dd5..c026fef 100644 --- a/MANIFEST +++ b/MANIFEST @@ -19,9 +19,9 @@ gitlog-to-changelog install-sh libvirt/.depend libvirt/generator.pl +libvirt/libvirt_c.h libvirt/libvirt_c_epilogue.c libvirt/libvirt_c_oneoffs.c -libvirt/libvirt_c_prologue.c libvirt/libvirt.ml libvirt/libvirt.mli libvirt/libvirt_version.ml.in diff --git a/libvirt/Makefile.in b/libvirt/Makefile.in index f255ee2..8451c5d 100644 --- a/libvirt/Makefile.in +++ b/libvirt/Makefile.in @@ -104,7 +104,7 @@ libvirt_c.c: generator.pl $(PERL) -w $< # Extra dependencies. -libvirt_c.c: libvirt_c_prologue.c +libvirt_c.c: libvirt_c.h libvirt_c.c: libvirt_c_oneoffs.c libvirt_c.c: libvirt_c_epilogue.c diff --git a/libvirt/README b/libvirt/README index be8300d..0109940 100644 --- a/libvirt/README +++ b/libvirt/README @@ -10,6 +10,9 @@ documentation starting at html/index.html. 'libvirt_c*.c' are the C functions which map OCaml objects to C objects and vice versa (see next section). +'libvirt_c.h' contains prototypes of common functions defined +in the epilogue (see below), and provides some general macros. + Generated code -------------- @@ -27,11 +30,6 @@ directory to find out how we're doing. The generated 'libvirt_c.c' #includes some other C files in this directory: - #include "libvirt_c_prologue.c" - - A prologue that prototypes some static functions which are defined - in the epilogue (see below), and provides some general macros. - #include "libvirt_c_oneoffs.c" One-off bindings: Bindings which are too specialised or one-of-a-kind diff --git a/libvirt/generator.pl b/libvirt/generator.pl index 279331a..92d5a64 100755 --- a/libvirt/generator.pl +++ b/libvirt/generator.pl @@ -249,7 +249,7 @@ print F <<'END'; #include <caml/mlvalues.h> #include <caml/signals.h> -#include "libvirt_c_prologue.c" +#include "libvirt_c.h" #include "libvirt_c_oneoffs.c" diff --git a/libvirt/libvirt_c_prologue.c b/libvirt/libvirt_c.h similarity index 100% rename from libvirt/libvirt_c_prologue.c rename to libvirt/libvirt_c.h -- 2.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list