Rename src/ to lib/

This commit is contained in:
Richard W.M. Jones
2017-01-19 18:19:07 +00:00
parent b53cec584d
commit f161c9ea57
133 changed files with 417 additions and 421 deletions

40
.gitignore vendored
View File

@@ -305,6 +305,26 @@ Makefile.in
/java/doc-stamp /java/doc-stamp
/java/examples/guestfs-java.3 /java/examples/guestfs-java.3
/java/examples/stamp-guestfs-java.pod /java/examples/stamp-guestfs-java.pod
/lib/actions-?.c
/lib/actions-variants.c
/lib/bindtests.c
/lib/event-string.c
/lib/guestfs.3
/lib/guestfs-actions.pod
/lib/guestfs-availability.pod
/lib/guestfs.h
/lib/guestfs-internal-actions.h
/lib/guestfs-structs.pod
/lib/libguestfs.3
/lib/libguestfs.pc
/lib/libguestfs.syms
/lib/.libs/libguestfs.so
/lib/libvirt-is-version
/lib/stamp-guestfs.pod
/lib/structs-compare.c
/lib/structs-copy.c
/lib/structs-free.c
/lib/unit-tests
/libguestfs.spec /libguestfs.spec
/libguestfs-*.tar.gz /libguestfs-*.tar.gz
/libtool /libtool
@@ -498,26 +518,6 @@ Makefile.in
/sparsify/stamp-virt-sparsify.pod /sparsify/stamp-virt-sparsify.pod
/sparsify/virt-sparsify /sparsify/virt-sparsify
/sparsify/virt-sparsify.1 /sparsify/virt-sparsify.1
/src/actions-?.c
/src/actions-variants.c
/src/bindtests.c
/src/event-string.c
/src/guestfs.3
/src/guestfs-actions.pod
/src/guestfs-availability.pod
/src/guestfs.h
/src/guestfs-internal-actions.h
/src/guestfs-structs.pod
/src/libguestfs.3
/src/libguestfs.pc
/src/libguestfs.syms
/src/.libs/libguestfs.so
/src/libvirt-is-version
/src/stamp-guestfs.pod
/src/structs-compare.c
/src/structs-copy.c
/src/structs-free.c
/src/unit-tests
/stamp-h1 /stamp-h1
/sysprep/.depend /sysprep/.depend
/sysprep/stamp-script1.sh /sysprep/stamp-script1.sh

View File

@@ -39,7 +39,7 @@ endif
# Basic source for the library. # Basic source for the library.
SUBDIRS += common/errnostring common/protocol common/utils SUBDIRS += common/errnostring common/protocol common/utils
SUBDIRS += src docs examples po SUBDIRS += lib docs examples po
# The daemon and the appliance. # The daemon and the appliance.
if ENABLE_DAEMON if ENABLE_DAEMON

View File

@@ -40,7 +40,7 @@ virt_alignment_scan_SOURCES = \
virt_alignment_scan_CPPFLAGS = \ virt_alignment_scan_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/df \ -I$(top_srcdir)/df \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \ -I$(srcdir)/../gnulib/lib -I../gnulib/lib \
@@ -54,7 +54,7 @@ virt_alignment_scan_CFLAGS = \
virt_alignment_scan_LDADD = \ virt_alignment_scan_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

View File

@@ -101,7 +101,7 @@ virt_builder_CPPFLAGS = \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib \
-I$(top_srcdir)/common/utils \ -I$(top_srcdir)/common/utils \
-I$(top_srcdir)/src \ -I$(top_srcdir)/lib \
-I$(top_srcdir)/fish -I$(top_srcdir)/fish
virt_builder_CFLAGS = \ virt_builder_CFLAGS = \
-pthread \ -pthread \
@@ -115,13 +115,13 @@ virt_builder_CFLAGS = \
BOBJECTS = $(SOURCES_ML:.ml=.cmo) BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx) XOBJECTS = $(BOBJECTS:.cmo=.cmx)
# -I $(top_builddir)/src/.libs is a hack which forces corresponding -L # -I $(top_builddir)/lib/.libs is a hack which forces corresponding -L
# option to be passed to gcc, so we don't try linking against an # option to be passed to gcc, so we don't try linking against an
# installed copy of libguestfs. # installed copy of libguestfs.
OCAMLPACKAGES = \ OCAMLPACKAGES = \
-package str,unix \ -package str,unix \
-I $(top_builddir)/common/utils/.libs \ -I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/src/.libs \ -I $(top_builddir)/lib/.libs \
-I $(top_builddir)/gnulib/lib/.libs \ -I $(top_builddir)/gnulib/lib/.libs \
-I $(top_builddir)/ocaml \ -I $(top_builddir)/ocaml \
-I $(top_builddir)/mllib \ -I $(top_builddir)/mllib \
@@ -337,7 +337,7 @@ virt_index_validate_CPPFLAGS = \
-I$(top_builddir) \ -I$(top_builddir) \
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
-I$(top_srcdir)/common/utils \ -I$(top_srcdir)/common/utils \
-I$(top_srcdir)/src -I$(top_srcdir)/lib
virt_index_validate_CFLAGS = \ virt_index_validate_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \
-Wno-unused-macros -Wno-unused-macros

View File

@@ -44,7 +44,7 @@ virt_cat_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -54,7 +54,7 @@ virt_cat_CFLAGS = \
virt_cat_LDADD = \ virt_cat_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
@@ -69,7 +69,7 @@ virt_filesystems_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -79,7 +79,7 @@ virt_filesystems_CFLAGS = \
virt_filesystems_LDADD = \ virt_filesystems_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
@@ -94,7 +94,7 @@ virt_log_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -104,7 +104,7 @@ virt_log_CFLAGS = \
virt_log_LDADD = \ virt_log_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
@@ -121,7 +121,7 @@ virt_ls_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -131,7 +131,7 @@ virt_ls_CFLAGS = \
virt_ls_LDADD = \ virt_ls_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
@@ -146,7 +146,7 @@ virt_tail_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -156,7 +156,7 @@ virt_tail_CFLAGS = \
virt_tail_LDADD = \ virt_tail_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

2
cfg.mk
View File

@@ -33,7 +33,7 @@ exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^test-data/|\.patch$|
exclude_file_name_regexp--sc_prohibit_magic_number_exit = ^(po|po-docs)/|\.pod$|^fuse/guestunmount\.c exclude_file_name_regexp--sc_prohibit_magic_number_exit = ^(po|po-docs)/|\.pod$|^fuse/guestunmount\.c
exclude_file_name_regexp--sc_prohibit_strcmp = ^(examples|po-docs)/|\.pod$ exclude_file_name_regexp--sc_prohibit_strcmp = ^(examples|po-docs)/|\.pod$
exclude_file_name_regexp--sc_prohibit_strcmp_and_strncmp = ^(examples|po-docs)/|\.pod$ exclude_file_name_regexp--sc_prohibit_strcmp_and_strncmp = ^(examples|po-docs)/|\.pod$
exclude_file_name_regexp--sc_prohibit_strncpy = ^src/launch-.*\.c$ exclude_file_name_regexp--sc_prohibit_strncpy = ^lib/launch-.*\.c$
exclude_file_name_regexp--sc_require_config_h = ^examples/|^tests/c-api/test-just-header\.c$ exclude_file_name_regexp--sc_require_config_h = ^examples/|^tests/c-api/test-just-header\.c$
exclude_file_name_regexp--sc_require_config_h_first = ^examples/|^tests/c-api/test-just-header\.c$|^python/guestfs-py-byhand\.c$ exclude_file_name_regexp--sc_require_config_h_first = ^examples/|^tests/c-api/test-just-header\.c$|^python/guestfs-py-byhand\.c$

View File

@@ -49,7 +49,7 @@ endif
guestfs_protocol.c: guestfs_protocol.x guestfs_protocol.c: guestfs_protocol.x
rm -f $@-t $@-t2 rm -f $@-t $@-t2
$(RPCGEN) $(RPCGEN_DEFS) -c -o $@-t $< $(RPCGEN) $(RPCGEN_DEFS) -c -o $@-t $<
$(SED) 's,\.\./\(\.\./\)*src,.,' < $@-t > $@-t2 $(SED) 's,\.\./\(\.\./\)*lib,.,' < $@-t > $@-t2
rm $@-t rm $@-t
mv $@-t2 $@ mv $@-t2 $@

View File

@@ -33,7 +33,7 @@ EXTRA_DIST = \
noinst_LTLIBRARIES = libutils.la noinst_LTLIBRARIES = libutils.la
libutils_la_SOURCES = \ libutils_la_SOURCES = \
../../src/guestfs.h \ ../../lib/guestfs.h \
cleanup.c \ cleanup.c \
guestfs-internal-frontend.h \ guestfs-internal-frontend.h \
guestfs-internal-frontend-cleanups.h \ guestfs-internal-frontend-cleanups.h \
@@ -46,7 +46,7 @@ libutils_la_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DGUESTFS_PRIVATE=1 \ -DGUESTFS_PRIVATE=1 \
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
libutils_la_CFLAGS = \ libutils_la_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \
$(GCC_VISIBILITY_HIDDEN) \ $(GCC_VISIBILITY_HIDDEN) \

View File

@@ -22,7 +22,7 @@
* *
* The daemon does B<not> use this header. If you need a place to put * The daemon does B<not> use this header. If you need a place to put
* something shared with absolutely everything including the daemon, * something shared with absolutely everything including the daemon,
* put it in F<src/guestfs-internal-all.h> * put it in F<lib/guestfs-internal-all.h>
* *
* If a definition is only needed by a single component of libguestfs * If a definition is only needed by a single component of libguestfs
* (eg. just the library, or just a single virt tool) then it should * (eg. just the library, or just a single virt tool) then it should

View File

@@ -366,7 +366,7 @@ guestfs_int_is_true (const char *str)
/** /**
* Check a string for validity, that it contains only certain * Check a string for validity, that it contains only certain
* characters, and minimum and maximum length. This function is * characters, and minimum and maximum length. This function is
* usually wrapped in a VALID_* macro, see F<src/drives.c> for an * usually wrapped in a VALID_* macro, see F<lib/drives.c> for an
* example. * example.
* *
* C<str> is the string to check. * C<str> is the string to check.

View File

@@ -211,6 +211,8 @@ AC_CONFIG_FILES([Makefile
inspector/Makefile inspector/Makefile
java/Makefile java/Makefile
java/examples/Makefile java/examples/Makefile
lib/Makefile
lib/libguestfs.pc
lua/Makefile lua/Makefile
lua/examples/Makefile lua/examples/Makefile
make-fs/Makefile make-fs/Makefile
@@ -238,8 +240,6 @@ AC_CONFIG_FILES([Makefile
ruby/examples/Makefile ruby/examples/Makefile
ruby/ext/guestfs/extconf.rb ruby/ext/guestfs/extconf.rb
sparsify/Makefile sparsify/Makefile
src/Makefile
src/libguestfs.pc
sysprep/Makefile sysprep/Makefile
test-data/Makefile test-data/Makefile
test-data/binaries/Makefile test-data/binaries/Makefile

View File

@@ -21,7 +21,7 @@ make-check-on-installed.pl
windows-icons.pl windows-icons.pl
This script lets you extract all the icons from a Windows This script lets you extract all the icons from a Windows
guest. We use this to locate the Windows logo in new releases guest. We use this to locate the Windows logo in new releases
of Windows (see src/inspect-icon.c). of Windows (see lib/inspect-icon.c).
visualize-alignment/ visualize-alignment/
Tests for visualizing block device reads and writes and Tests for visualizing block device reads and writes and

View File

@@ -18,7 +18,7 @@
# This script lets you extract all the icons from a Windows guest. We # This script lets you extract all the icons from a Windows guest. We
# use this to locate the Windows logo in new releases of Windows (see # use this to locate the Windows logo in new releases of Windows (see
# src/inspect-icon.c). # lib/inspect-icon.c).
# #
# Use it like this: # Use it like this:
# ./run ./contrib/windows-icons.pl /path/to/windows-disk.img # ./run ./contrib/windows-icons.pl /path/to/windows-disk.img

View File

@@ -97,7 +97,7 @@ libcustomize_a_CPPFLAGS = \
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/common/utils \ -I$(top_srcdir)/common/utils \
-I$(top_srcdir)/src \ -I$(top_srcdir)/lib \
-I$(top_srcdir)/fish -I$(top_srcdir)/fish
libcustomize_a_CFLAGS = \ libcustomize_a_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \
@@ -114,13 +114,13 @@ else
OBJECTS = $(XOBJECTS) OBJECTS = $(XOBJECTS)
endif endif
# -I $(top_builddir)/src/.libs is a hack which forces corresponding -L # -I $(top_builddir)/lib/.libs is a hack which forces corresponding -L
# option to be passed to gcc, so we don't try linking against an # option to be passed to gcc, so we don't try linking against an
# installed copy of libguestfs. # installed copy of libguestfs.
OCAMLPACKAGES = \ OCAMLPACKAGES = \
-package str,unix \ -package str,unix \
-I $(top_builddir)/common/utils/.libs \ -I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/src/.libs \ -I $(top_builddir)/lib/.libs \
-I $(top_builddir)/gnulib/lib/.libs \ -I $(top_builddir)/gnulib/lib/.libs \
-I $(top_builddir)/ocaml \ -I $(top_builddir)/ocaml \
-I $(top_builddir)/mllib \ -I $(top_builddir)/mllib \

View File

@@ -190,8 +190,8 @@ guestfsd_LDADD = \
guestfsd_CPPFLAGS = \ guestfsd_CPPFLAGS = \
-I$(top_srcdir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib \
-I$(top_builddir)/gnulib/lib \ -I$(top_builddir)/gnulib/lib \
-I$(top_srcdir)/src \ -I$(top_srcdir)/lib \
-I$(top_builddir)/src \ -I$(top_builddir)/lib \
-I$(top_srcdir)/common/errnostring \ -I$(top_srcdir)/common/errnostring \
-I$(top_builddir)/common/errnostring \ -I$(top_builddir)/common/errnostring \
-I$(top_srcdir)/common/protocol \ -I$(top_srcdir)/common/protocol \

View File

@@ -42,7 +42,7 @@ virt_df_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -54,7 +54,7 @@ virt_df_CFLAGS = \
virt_df_LDADD = \ virt_df_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

View File

@@ -48,7 +48,7 @@ virt_dib_CPPFLAGS = \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib \
-I$(top_srcdir)/common/utils \ -I$(top_srcdir)/common/utils \
-I$(top_srcdir)/src -I$(top_srcdir)/lib
virt_dib_CFLAGS = \ virt_dib_CFLAGS = \
-pthread \ -pthread \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
@@ -57,13 +57,13 @@ BOBJECTS = \
$(SOURCES_ML:.ml=.cmo) $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx) XOBJECTS = $(BOBJECTS:.cmo=.cmx)
# -I $(top_builddir)/src/.libs is a hack which forces corresponding -L # -I $(top_builddir)/lib/.libs is a hack which forces corresponding -L
# option to be passed to gcc, so we don't try linking against an # option to be passed to gcc, so we don't try linking against an
# installed copy of libguestfs. # installed copy of libguestfs.
OCAMLPACKAGES = \ OCAMLPACKAGES = \
-package str,unix \ -package str,unix \
-I $(top_builddir)/common/utils/.libs \ -I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/src/.libs \ -I $(top_builddir)/lib/.libs \
-I $(top_builddir)/gnulib/lib/.libs \ -I $(top_builddir)/gnulib/lib/.libs \
-I $(top_builddir)/ocaml \ -I $(top_builddir)/ocaml \
-I $(top_builddir)/mllib -I $(top_builddir)/mllib

View File

@@ -36,7 +36,7 @@ virt_diff_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/cat -I$(top_srcdir)/fish \ -I$(top_srcdir)/cat -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -46,7 +46,7 @@ virt_diff_CFLAGS = \
virt_diff_LDADD = \ virt_diff_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

View File

@@ -248,6 +248,77 @@ java/actions-4.c
java/actions-5.c java/actions-5.c
java/actions-6.c java/actions-6.c
java/handle.c java/handle.c
lib/actions-0.c
lib/actions-1.c
lib/actions-2.c
lib/actions-3.c
lib/actions-4.c
lib/actions-5.c
lib/actions-6.c
lib/actions-support.c
lib/actions-variants.c
lib/alloc.c
lib/appliance-cpu.c
lib/appliance-kcmdline.c
lib/appliance-uefi.c
lib/appliance.c
lib/available.c
lib/bindtests.c
lib/canonical-name.c
lib/command.c
lib/conn-socket.c
lib/copy-in-out.c
lib/create.c
lib/dbdump.c
lib/drives.c
lib/errors.c
lib/event-string.c
lib/events.c
lib/file.c
lib/filearch.c
lib/fuse.c
lib/guestfs-internal-actions.h
lib/guestfs-internal-all.h
lib/guestfs-internal.h
lib/guestfs.h
lib/guid.c
lib/handle.c
lib/info.c
lib/inspect-apps.c
lib/inspect-fs-cd.c
lib/inspect-fs-unix.c
lib/inspect-fs-windows.c
lib/inspect-fs.c
lib/inspect-icon.c
lib/inspect.c
lib/journal.c
lib/launch-direct.c
lib/launch-libvirt.c
lib/launch-uml.c
lib/launch-unix.c
lib/launch.c
lib/libvirt-auth.c
lib/libvirt-domain.c
lib/libvirt-is-version.c
lib/listfs.c
lib/lpj.c
lib/match.c
lib/mountable.c
lib/osinfo.c
lib/private-data.c
lib/proto.c
lib/qemu.c
lib/stringsbuf.c
lib/structs-compare.c
lib/structs-copy.c
lib/structs-free.c
lib/tmpdirs.c
lib/tsk.c
lib/umask.c
lib/unit-tests.c
lib/version.c
lib/wait.c
lib/whole-file.c
lua/lua-guestfs.c lua/lua-guestfs.c
make-fs/make-fs.c make-fs/make-fs.c
mllib/common_utils-c.c mllib/common_utils-c.c
@@ -309,77 +380,6 @@ ruby/ext/guestfs/actions.h
ruby/ext/guestfs/handle.c ruby/ext/guestfs/handle.c
ruby/ext/guestfs/module.c ruby/ext/guestfs/module.c
sparsify/dummy.c sparsify/dummy.c
src/actions-0.c
src/actions-1.c
src/actions-2.c
src/actions-3.c
src/actions-4.c
src/actions-5.c
src/actions-6.c
src/actions-support.c
src/actions-variants.c
src/alloc.c
src/appliance-cpu.c
src/appliance-kcmdline.c
src/appliance-uefi.c
src/appliance.c
src/available.c
src/bindtests.c
src/canonical-name.c
src/command.c
src/conn-socket.c
src/copy-in-out.c
src/create.c
src/dbdump.c
src/drives.c
src/errors.c
src/event-string.c
src/events.c
src/file.c
src/filearch.c
src/fuse.c
src/guestfs-internal-actions.h
src/guestfs-internal-all.h
src/guestfs-internal.h
src/guestfs.h
src/guid.c
src/handle.c
src/info.c
src/inspect-apps.c
src/inspect-fs-cd.c
src/inspect-fs-unix.c
src/inspect-fs-windows.c
src/inspect-fs.c
src/inspect-icon.c
src/inspect.c
src/journal.c
src/launch-direct.c
src/launch-libvirt.c
src/launch-uml.c
src/launch-unix.c
src/launch.c
src/libvirt-auth.c
src/libvirt-domain.c
src/libvirt-is-version.c
src/listfs.c
src/lpj.c
src/match.c
src/mountable.c
src/osinfo.c
src/private-data.c
src/proto.c
src/qemu.c
src/stringsbuf.c
src/structs-compare.c
src/structs-copy.c
src/structs-free.c
src/tmpdirs.c
src/tsk.c
src/umask.c
src/unit-tests.c
src/version.c
src/wait.c
src/whole-file.c
sysprep/dummy.c sysprep/dummy.c
test-tool/test-tool.c test-tool/test-tool.c
utils/boot-analysis/boot-analysis-timeline.c utils/boot-analysis/boot-analysis-timeline.c

View File

@@ -21,7 +21,7 @@ Libguestfs uses an autotools-based build system, with the main files
being F<configure.ac> and F<Makefile.am>. See L</THE BUILD SYSTEM>. being F<configure.ac> and F<Makefile.am>. See L</THE BUILD SYSTEM>.
The F<generator> subdirectory contains the generator, plus files The F<generator> subdirectory contains the generator, plus files
describing the API. The F<src> subdirectory contains source for the describing the API. The F<lib> subdirectory contains source for the
library. The F<appliance> and F<daemon> subdirectories contain the library. The F<appliance> and F<daemon> subdirectories contain the
source for the code that builds the appliance, and the code that runs source for the code that builds the appliance, and the code that runs
in the appliance respectively. Other directories are covered in the in the appliance respectively. Other directories are covered in the
@@ -31,7 +31,7 @@ Apart from the fact that all API entry points go via some generated
code, the library is straightforward. (In fact, even the generated code, the library is straightforward. (In fact, even the generated
code is designed to be readable, and should be read as ordinary code). code is designed to be readable, and should be read as ordinary code).
Some actions run entirely in the library, and are written as C Some actions run entirely in the library, and are written as C
functions in files under F<src>. Others are forwarded to the daemon functions in files under F<lib>. Others are forwarded to the daemon
where (after some generated RPC marshalling) they appear as C where (after some generated RPC marshalling) they appear as C
functions in files under F<daemon>. functions in files under F<daemon>.
@@ -40,7 +40,7 @@ To build from source, first read the L<guestfs-building(1)>.
=head1 SOURCE CODE SUBDIRECTORIES =head1 SOURCE CODE SUBDIRECTORIES
There are a lot of subdirectories in the source tree! Which ones There are a lot of subdirectories in the source tree! Which ones
should you concentrate on first? F<src> and F<daemon> which contain should you concentrate on first? F<lib> and F<daemon> which contain
the source code of the core library. F<generator> is the code the source code of the core library. F<generator> is the code
generator described above, so that is important. The F<Makefile.am> generator described above, so that is important. The F<Makefile.am>
in the root directory will tell you in which order the subdirectories in the root directory will tell you in which order the subdirectories
@@ -169,6 +169,10 @@ under here.
L<virt-inspector(1)>, the virtual machine image inspector. L<virt-inspector(1)>, the virtual machine image inspector.
=item F<lib>
Source code to the C library.
=item F<logo> =item F<logo>
Logo used on the website. The fish is called Arthur by the way. Logo used on the website. The fish is called Arthur by the way.
@@ -213,10 +217,6 @@ L<virt-resize(1)> command and documentation.
L<virt-sparsify(1)> command and documentation. L<virt-sparsify(1)> command and documentation.
=item F<src>
Source code to the C library.
=item F<sysprep> =item F<sysprep>
L<virt-sysprep(1)> command and documentation. L<virt-sysprep(1)> command and documentation.
@@ -348,7 +348,7 @@ For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the
C<daemon/> directory. C<daemon/> directory.
For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>> For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>>
in the C<src/> directory. in the C<lib/> directory.
In either case, use another function as an example of what to do. In either case, use another function as an example of what to do.

View File

@@ -148,7 +148,7 @@ foreach $input (@ARGV) {
} }
} }
# Sort the input files into directory sections. Put the 'src' # Sort the input files into directory sections. Put the 'lib'
# directory first, and the rest follow in alphabetical order. # directory first, and the rest follow in alphabetical order.
my %dirs = (); my %dirs = ();
foreach $input (@inputs) { foreach $input (@inputs) {
@@ -157,9 +157,9 @@ foreach $input (@inputs) {
push @{$dirs{$1}}, $2 push @{$dirs{$1}}, $2
} }
sub src_first { sub src_first {
if ($a eq "src" && $b eq "src") { return 0 } if ($a eq "lib" && $b eq "lib") { return 0 }
elsif ($a eq "src") { return -1 } elsif ($a eq "lib") { return -1 }
elsif ($b eq "src") { return 1 } elsif ($b eq "lib") { return 1 }
else { return $a cmp $b } else { return $a cmp $b }
} }
my @dirs = sort src_first (keys %dirs); my @dirs = sort src_first (keys %dirs);

View File

@@ -38,7 +38,7 @@ virt_edit_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -48,7 +48,7 @@ virt_edit_CFLAGS = \
virt_edit_LDADD = \ virt_edit_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

View File

@@ -81,7 +81,7 @@ erl_guestfs_SOURCES = \
erl_guestfs_CPPFLAGS = \ erl_guestfs_CPPFLAGS = \
-DGUESTFS_PRIVATE=1 \ -DGUESTFS_PRIVATE=1 \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \ -I$(srcdir)/../gnulib/lib -I../gnulib/lib \
-I$(ERLANG_LIB_DIR_erl_interface)/include -I$(ERLANG_LIB_DIR_erl_interface)/include
@@ -93,7 +93,7 @@ erl_guestfs_LDADD = \
$(ERLANG_LIB_DIR_erl_interface)/lib/libei.a \ $(ERLANG_LIB_DIR_erl_interface)/lib/libei.a \
-lpthread \ -lpthread \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
$(LTLIBINTL) \ $(LTLIBINTL) \

View File

@@ -44,88 +44,88 @@ if HAVE_LIBVIRT
copy_over_SOURCES = copy-over.c copy_over_SOURCES = copy-over.c
copy_over_CPPFLAGS = \ copy_over_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
copy_over_CFLAGS = \ copy_over_CFLAGS = \
$(LIBVIRT_CFLAGS) \ $(LIBVIRT_CFLAGS) \
-pthread \ -pthread \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
copy_over_LDADD = \ copy_over_LDADD = \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBVIRT_LIBS) $(LIBVIRT_LIBS)
libvirt_auth_SOURCES = libvirt-auth.c libvirt_auth_SOURCES = libvirt-auth.c
libvirt_auth_CPPFLAGS = \ libvirt_auth_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
libvirt_auth_CFLAGS = \ libvirt_auth_CFLAGS = \
$(LIBVIRT_CFLAGS) \ $(LIBVIRT_CFLAGS) \
-pthread \ -pthread \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
libvirt_auth_LDADD = \ libvirt_auth_LDADD = \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBVIRT_LIBS) $(LIBVIRT_LIBS)
endif endif
create_disk_SOURCES = create-disk.c create_disk_SOURCES = create-disk.c
create_disk_CPPFLAGS = \ create_disk_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
create_disk_CFLAGS = \ create_disk_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
create_disk_LDADD = \ create_disk_LDADD = \
$(top_builddir)/src/libguestfs.la $(top_builddir)/lib/libguestfs.la
debug_logging_SOURCES = debug-logging.c debug_logging_SOURCES = debug-logging.c
debug_logging_CPPFLAGS = \ debug_logging_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
debug_logging_CFLAGS = \ debug_logging_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
debug_logging_LDADD = \ debug_logging_LDADD = \
$(top_builddir)/src/libguestfs.la $(top_builddir)/lib/libguestfs.la
display_icon_SOURCES = display-icon.c display_icon_SOURCES = display-icon.c
display_icon_CPPFLAGS = \ display_icon_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
display_icon_CFLAGS = \ display_icon_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
display_icon_LDADD = \ display_icon_LDADD = \
$(top_builddir)/src/libguestfs.la $(top_builddir)/lib/libguestfs.la
inspect_vm_SOURCES = inspect-vm.c inspect_vm_SOURCES = inspect-vm.c
inspect_vm_CPPFLAGS = \ inspect_vm_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
inspect_vm_CFLAGS = \ inspect_vm_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
inspect_vm_LDADD = \ inspect_vm_LDADD = \
$(top_builddir)/src/libguestfs.la $(top_builddir)/lib/libguestfs.la
if HAVE_FUSE if HAVE_FUSE
mount_local_SOURCES = mount-local.c mount_local_SOURCES = mount-local.c
mount_local_CPPFLAGS = \ mount_local_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
mount_local_CFLAGS = \ mount_local_CFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
$(FUSE_CFLAGS) \ $(FUSE_CFLAGS) \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
mount_local_LDADD = \ mount_local_LDADD = \
$(FUSE_LIBS) \ $(FUSE_LIBS) \
$(top_builddir)/src/libguestfs.la $(top_builddir)/lib/libguestfs.la
endif endif
if HAVE_HIVEX if HAVE_HIVEX
virt_dhcp_address_SOURCES = virt-dhcp-address.c virt_dhcp_address_SOURCES = virt-dhcp-address.c
virt_dhcp_address_CPPFLAGS = \ virt_dhcp_address_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
virt_dhcp_address_CFLAGS = \ virt_dhcp_address_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
virt_dhcp_address_LDADD = \ virt_dhcp_address_LDADD = \
$(top_builddir)/src/libguestfs.la $(top_builddir)/lib/libguestfs.la
endif endif
man_MANS = guestfs-examples.3 man_MANS = guestfs-examples.3

View File

@@ -98,7 +98,7 @@ libfishcommon_la_SOURCES = \
libfishcommon_la_CPPFLAGS = \ libfishcommon_la_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish -I$(top_builddir)/fish \ -I$(top_srcdir)/fish -I$(top_builddir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
libfishcommon_la_CFLAGS = \ libfishcommon_la_CFLAGS = \
@@ -106,7 +106,7 @@ libfishcommon_la_CFLAGS = \
$(LIBXML2_CFLAGS) $(LIBXML2_CFLAGS)
libfishcommon_la_LIBADD = \ libfishcommon_la_LIBADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LTLIBINTL) $(LTLIBINTL)
@@ -164,7 +164,7 @@ guestfish_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish -I$(top_builddir)/fish \ -I$(top_srcdir)/fish -I$(top_builddir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -178,7 +178,7 @@ guestfish_LDADD = \
$(LIBREADLINE) \ $(LIBREADLINE) \
$(LIBTINFO_LIBS) \ $(LIBTINFO_LIBS) \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LTLIBINTL) \ $(LTLIBINTL) \
-lm -lm

View File

@@ -31,7 +31,7 @@ virt_format_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -42,7 +42,7 @@ virt_format_CFLAGS = \
virt_format_LDADD = \ virt_format_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

View File

@@ -45,7 +45,7 @@ guestmount_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -59,7 +59,7 @@ guestmount_LDADD = \
$(FUSE_LIBS) \ $(FUSE_LIBS) \
$(LIBCONFIG_LIBS) \ $(LIBCONFIG_LIBS) \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
@@ -76,7 +76,7 @@ guestunmount_SOURCES = \
guestunmount_CPPFLAGS = \ guestunmount_CPPFLAGS = \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -85,7 +85,7 @@ guestunmount_CFLAGS = \
guestunmount_LDADD = \ guestunmount_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
$(LTLIBINTL) \ $(LTLIBINTL) \
@@ -147,7 +147,7 @@ test_fuse_SOURCES = \
test_fuse_CPPFLAGS = \ test_fuse_CPPFLAGS = \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
test_fuse_CFLAGS = \ test_fuse_CFLAGS = \
@@ -155,7 +155,7 @@ test_fuse_CFLAGS = \
test_fuse_LDADD = \ test_fuse_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
$(ACL_LIBS) \ $(ACL_LIBS) \
@@ -166,7 +166,7 @@ test_guestmount_fd_SOURCES = \
test_guestmount_fd_CPPFLAGS = \ test_guestmount_fd_CPPFLAGS = \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
test_guestmount_fd_CFLAGS = \ test_guestmount_fd_CFLAGS = \
@@ -174,7 +174,7 @@ test_guestmount_fd_CFLAGS = \
test_guestmount_fd_LDADD = \ test_guestmount_fd_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
$(LTLIBINTL) \ $(LTLIBINTL) \
@@ -185,7 +185,7 @@ test_guestunmount_fd_SOURCES = \
test_guestunmount_fd_CPPFLAGS = \ test_guestunmount_fd_CPPFLAGS = \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
test_guestunmount_fd_CFLAGS = \ test_guestunmount_fd_CFLAGS = \
@@ -193,7 +193,7 @@ test_guestunmount_fd_CFLAGS = \
test_guestunmount_fd_LDADD = \ test_guestunmount_fd_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
$(LTLIBINTL) \ $(LTLIBINTL) \

View File

@@ -13658,9 +13658,9 @@ let () =
| { proc_nr = None } -> () | { proc_nr = None } -> ()
) non_daemon_functions ) non_daemon_functions
(* This is used to generate the src/MAX_PROC_NR file which (* This is used to generate the lib/MAX_PROC_NR file which
* contains the maximum procedure number, a surrogate for the * contains the maximum procedure number, a surrogate for the
* ABI version number. See src/Makefile.am for the details. * ABI version number. See lib/Makefile.am for the details.
*) *)
let max_proc_nr = let max_proc_nr =
let proc_nrs = List.map ( let proc_nrs = List.map (

View File

@@ -57,5 +57,5 @@ val fish_commands : Types.action list
(** Non-API meta-commands available only in guestfish. *) (** Non-API meta-commands available only in guestfish. *)
val max_proc_nr : int val max_proc_nr : int
(** The largest procedure number used (also saved in [src/MAX_PROC_NR] and (** The largest procedure number used (also saved in [lib/MAX_PROC_NR] and
used as the minor version number of the shared library). *) used as the minor version number of the shared library). *)

View File

@@ -106,21 +106,21 @@ Run it from the top source directory using the command
output_to "common/utils/structs-print.h" generate_client_structs_print_h; output_to "common/utils/structs-print.h" generate_client_structs_print_h;
output_to "common/utils/uefi.c" generate_uefi_c; output_to "common/utils/uefi.c" generate_uefi_c;
output_to "src/guestfs.h" generate_guestfs_h; output_to "lib/guestfs.h" generate_guestfs_h;
output_to "src/guestfs-internal-actions.h" generate_internal_actions_h; output_to "lib/guestfs-internal-actions.h" generate_internal_actions_h;
output_to "src/bindtests.c" generate_bindtests; output_to "lib/bindtests.c" generate_bindtests;
output_to "src/guestfs-structs.pod" generate_structs_pod; output_to "lib/guestfs-structs.pod" generate_structs_pod;
output_to "src/guestfs-actions.pod" generate_actions_pod; output_to "lib/guestfs-actions.pod" generate_actions_pod;
output_to "src/guestfs-availability.pod" generate_availability_pod; output_to "lib/guestfs-availability.pod" generate_availability_pod;
output_to "src/event-string.c" generate_event_string_c; output_to "lib/event-string.c" generate_event_string_c;
output_to "src/MAX_PROC_NR" generate_max_proc_nr; output_to "lib/MAX_PROC_NR" generate_max_proc_nr;
output_to "src/libguestfs.syms" generate_linker_script; output_to "lib/libguestfs.syms" generate_linker_script;
output_to "src/structs-compare.c" generate_client_structs_compare; output_to "lib/structs-compare.c" generate_client_structs_compare;
output_to "src/structs-copy.c" generate_client_structs_copy; output_to "lib/structs-copy.c" generate_client_structs_copy;
output_to "src/structs-free.c" generate_client_structs_free; output_to "lib/structs-free.c" generate_client_structs_free;
output_to "src/actions-variants.c" generate_client_actions_variants; output_to "lib/actions-variants.c" generate_client_actions_variants;
output_to_subset "src/actions-%d.c" generate_client_actions; output_to_subset "lib/actions-%d.c" generate_client_actions;
output_to "daemon/actions.h" generate_daemon_actions_h; output_to "daemon/actions.h" generate_daemon_actions_h;
output_to "daemon/stubs.h" generate_daemon_stubs_h; output_to "daemon/stubs.h" generate_daemon_stubs_h;
output_to_subset "daemon/stubs-%d.c" generate_daemon_stubs; output_to_subset "daemon/stubs-%d.c" generate_daemon_stubs;

View File

@@ -44,7 +44,7 @@ virt_get_kernel_CPPFLAGS = \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib \
-I$(top_srcdir)/common/utils \ -I$(top_srcdir)/common/utils \
-I$(top_srcdir)/src \ -I$(top_srcdir)/lib \
-I$(top_srcdir)/fish -I$(top_srcdir)/fish
virt_get_kernel_CFLAGS = \ virt_get_kernel_CFLAGS = \
-pthread \ -pthread \
@@ -54,13 +54,13 @@ virt_get_kernel_CFLAGS = \
BOBJECTS = $(SOURCES_ML:.ml=.cmo) BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx) XOBJECTS = $(BOBJECTS:.cmo=.cmx)
# -I $(top_builddir)/src/.libs is a hack which forces corresponding -L # -I $(top_builddir)/lib/.libs is a hack which forces corresponding -L
# option to be passed to gcc, so we don't try linking against an # option to be passed to gcc, so we don't try linking against an
# installed copy of libguestfs. # installed copy of libguestfs.
OCAMLPACKAGES = \ OCAMLPACKAGES = \
-package str,unix \ -package str,unix \
-I $(top_builddir)/common/utils/.libs \ -I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/src/.libs \ -I $(top_builddir)/lib/.libs \
-I $(top_builddir)/gnulib/lib/.libs \ -I $(top_builddir)/gnulib/lib/.libs \
-I $(top_builddir)/ocaml \ -I $(top_builddir)/ocaml \
-I $(top_builddir)/mllib -I $(top_builddir)/mllib

View File

@@ -52,11 +52,11 @@ libguestfs_gobject_1_0_ladir = $(includedir)/guestfs-gobject
libguestfs_gobject_1_0_la_HEADERS = $(guestfs_gobject_headers) libguestfs_gobject_1_0_la_HEADERS = $(guestfs_gobject_headers)
libguestfs_gobject_1_0_la_SOURCES = $(guestfs_gobject_sources) libguestfs_gobject_1_0_la_SOURCES = $(guestfs_gobject_sources)
libguestfs_gobject_1_0_la_CFLAGS = -I$(top_srcdir)/src -I$(srcdir)/include \ libguestfs_gobject_1_0_la_CFLAGS = -I$(top_srcdir)/lib -I$(srcdir)/include \
-DGUESTFS_PRIVATE=1 \ -DGUESTFS_PRIVATE=1 \
$(GOBJECT_CFLAGS) $(GOBJECT_CFLAGS)
libguestfs_gobject_1_0_la_LDFLAGS = $(LDFLAGS) -L$(top_builddir)/src libguestfs_gobject_1_0_la_LDFLAGS = $(LDFLAGS) -L$(top_builddir)/lib
libguestfs_gobject_1_0_la_LIBADD = $(top_builddir)/src/libguestfs.la $(GOBJECT_LIBS) $(GIO_LIBS) libguestfs_gobject_1_0_la_LIBADD = $(top_builddir)/lib/libguestfs.la $(GOBJECT_LIBS) $(GIO_LIBS)
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libguestfs-gobject-1.0.pc pkgconfig_DATA = libguestfs-gobject-1.0.pc
@@ -81,7 +81,7 @@ introspection_sources = \
Guestfs-1.0.gir: $(libname) Guestfs-1.0.gir: $(libname)
Guestfs_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0 Guestfs_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
Guestfs_1_0_gir_CFLAGS = $(INCLUDES) -I$(srcdir)/include Guestfs_1_0_gir_CFLAGS = $(INCLUDES) -I$(srcdir)/include
Guestfs_1_0_gir_LIBS = $(libname) $(top_builddir)/src/libguestfs.la Guestfs_1_0_gir_LIBS = $(libname) $(top_builddir)/lib/libguestfs.la
Guestfs_1_0_gir_FILES = $(patsubst %,$(srcdir)/%,$(introspection_sources)) Guestfs_1_0_gir_FILES = $(patsubst %,$(srcdir)/%,$(introspection_sources))
INTROSPECTION_GIRS += Guestfs-1.0.gir INTROSPECTION_GIRS += Guestfs-1.0.gir

View File

@@ -39,10 +39,10 @@ endif ENABLE_APPLIANCE
#check_DATA = Bindtests #check_DATA = Bindtests
GHCFLAGS = -I$(top_builddir)/src -L$(top_builddir)/src/.libs -i$(srcdir) GHCFLAGS = -I$(top_builddir)/lib -L$(top_builddir)/lib/.libs -i$(srcdir)
all_targets = Guestfs010Load Guestfs030Config Guestfs050LVCreate all_targets = Guestfs010Load Guestfs030Config Guestfs050LVCreate
$(all_targets): $(top_builddir)/src/libguestfs.la $(all_targets): $(top_builddir)/lib/libguestfs.la
all: $(all_targets) all: $(all_targets)

View File

@@ -59,7 +59,7 @@ virt_inspector_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -69,7 +69,7 @@ virt_inspector_CFLAGS = \
virt_inspector_LDADD = \ virt_inspector_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \

View File

@@ -35,10 +35,10 @@ exec_prefix=@exec_prefix@
find -name 'lt-*' | grep '/.libs/lt-' | xargs -r rm find -name 'lt-*' | grep '/.libs/lt-' | xargs -r rm
# Copy the installed library into libtool directory. # Copy the installed library into libtool directory.
rm -f src/.libs/libguestfs.so* rm -f lib/.libs/libguestfs.so*
cp @libdir@/libguestfs.so src/.libs/ cp @libdir@/libguestfs.so lib/.libs/
cp @libdir@/libguestfs.so.0 src/.libs/ cp @libdir@/libguestfs.so.0 lib/.libs/
cp @libdir@/libguestfs.so.0.* src/.libs/ cp @libdir@/libguestfs.so.0.* lib/.libs/
# Copy installed binaries into the right places. # Copy installed binaries into the right places.
cp @bindir@/libguestfs-test-tool test-tool/ cp @bindir@/libguestfs-test-tool test-tool/
@@ -100,7 +100,7 @@ compare () {
exit 1 exit 1
fi fi
} }
compare @libdir@/libguestfs.so src/.libs/libguestfs.so compare @libdir@/libguestfs.so lib/.libs/libguestfs.so
compare @bindir@/guestfish fish/guestfish compare @bindir@/guestfish fish/guestfish
compare @bindir@/guestmount fuse/guestmount compare @bindir@/guestmount fuse/guestmount
compare @bindir@/virt-df df/virt-df compare @bindir@/virt-df df/virt-df

View File

@@ -109,13 +109,13 @@ libguestfs_jni_la_SOURCES = \
libguestfs_jni_la_CPPFLAGS = \ libguestfs_jni_la_CPPFLAGS = \
-DGUESTFS_PRIVATE=1 \ -DGUESTFS_PRIVATE=1 \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
libguestfs_jni_la_CFLAGS = \ libguestfs_jni_la_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \
$(JNI_CFLAGS) $(JNI_CFLAGS)
libguestfs_jni_la_LIBADD = $(top_builddir)/src/libguestfs.la libguestfs_jni_la_LIBADD = $(top_builddir)/lib/libguestfs.la
libguestfs_jni_la_LDFLAGS = -version-info $(JNI_VERSION_INFO) -shared libguestfs_jni_la_LDFLAGS = -version-info $(JNI_VERSION_INFO) -shared

View File

@@ -209,7 +209,7 @@ unit_tests_SOURCES = unit-tests.c
unit_tests_CPPFLAGS = \ unit_tests_CPPFLAGS = \
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I. -I$(top_srcdir)/lib -I.
unit_tests_CFLAGS = \ unit_tests_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) $(WARN_CFLAGS) $(WERROR_CFLAGS)
# We have to link this to libguestfs, but because we want to test # We have to link this to libguestfs, but because we want to test

View File

@@ -17,7 +17,7 @@
*/ */
/** /**
* Helper functions for the actions code in F<src/actions-*.c>. * Helper functions for the actions code in F<lib/actions-*.c>.
*/ */
#include <config.h> #include <config.h>

View File

@@ -22,9 +22,9 @@
* tools (ie. I<all> C code). * tools (ie. I<all> C code).
* *
* If you need a definition used by only the library, put it in * If you need a definition used by only the library, put it in
* F<src/guestfs-internal.h> instead. If you need a definition used * F<lib/guestfs-internal.h> instead. If you need a definition used
* by only the frontend (non-daemon) parts of libguestfs, try * by only the frontend (non-daemon) parts of libguestfs, try
* F<src/guestfs-internal-frontend.h>. If a definition is used by * F<lib/guestfs-internal-frontend.h>. If a definition is used by
* only a single tool, it should not be in any shared header file at * only a single tool, it should not be in any shared header file at
* all. * all.
*/ */

View File

@@ -17,11 +17,11 @@
*/ */
/** /**
* This header file is included in the libguestfs library (F<src/>) * This header file is included in the libguestfs library (F<lib/>)
* only. * only.
* *
* See also F<src/guestfs-internal-frontend.h> and * See also F<lib/guestfs-internal-frontend.h> and
* F<src/guestfs-internal-all.h> * F<lib/guestfs-internal-all.h>
*/ */
#ifndef GUESTFS_INTERNAL_H_ #ifndef GUESTFS_INTERNAL_H_
@@ -387,7 +387,7 @@ struct error_cb_stack {
/** /**
* Cache of queried features. * Cache of queried features.
* *
* Used to cache the appliance features (see F<src/available.c>). * Used to cache the appliance features (see F<lib/available.c>).
*/ */
struct cached_feature { struct cached_feature {
char *group; char *group;
@@ -524,7 +524,7 @@ struct guestfs_h {
#endif #endif
#ifdef HAVE_LIBVIRT_BACKEND #ifdef HAVE_LIBVIRT_BACKEND
/* Used by src/libvirt-auth.c. */ /* Used by lib/libvirt-auth.c. */
#define NR_CREDENTIAL_TYPES 9 #define NR_CREDENTIAL_TYPES 9
unsigned int nr_supported_credentials; unsigned int nr_supported_credentials;
int supported_credentials[NR_CREDENTIAL_TYPES]; int supported_credentials[NR_CREDENTIAL_TYPES];
@@ -541,7 +541,7 @@ struct guestfs_h {
/** /**
* Used for storing major.minor.micro version numbers. * Used for storing major.minor.micro version numbers.
* See F<src/version.c> for more information. * See F<lib/version.c> for more information.
*/ */
struct version { struct version {
int v_major; int v_major;

View File

@@ -17,7 +17,7 @@
*/ */
/** /**
* This file, and the other C<src/inspect*.c> files, handle * This file, and the other C<lib/inspect*.c> files, handle
* inspection. See L<guestfs(3)/INSPECTION>. * inspection. See L<guestfs(3)/INSPECTION>.
*/ */

View File

@@ -21,7 +21,7 @@
* *
* Most of the work is done by the backends (see * Most of the work is done by the backends (see
* L<guestfs(3)/BACKEND>), which are implemented in * L<guestfs(3)/BACKEND>), which are implemented in
* F<src/launch-direct.c>, F<src/launch-libvirt.c> etc, so this file * F<lib/launch-direct.c>, F<lib/launch-libvirt.c> etc, so this file
* mostly passes calls through to the current backend. * mostly passes calls through to the current backend.
*/ */
@@ -129,7 +129,7 @@ guestfs_impl_launch (guestfs_h *g)
* *
* =item 3. * =item 3.
* *
* There is a hack in F<src/proto.c> to make this work. * There is a hack in F<lib/proto.c> to make this work.
* *
* =back * =back
*/ */

View File

@@ -19,7 +19,7 @@
/** /**
* This is the code used to send and receive RPC messages and (for * This is the code used to send and receive RPC messages and (for
* certain types of message) to perform file transfers. This code is * certain types of message) to perform file transfers. This code is
* driven from the generated actions (F<src/actions-*.c>). There * driven from the generated actions (F<lib/actions-*.c>). There
* are five different cases to consider: * are five different cases to consider:
* *
* =over 4 * =over 4

View File

@@ -433,7 +433,7 @@ test_stringsbuf (void)
guestfs_close (g); guestfs_close (g);
} }
/* Use the same macros as in src/drives.c */ /* Use the same macros as in lib/drives.c */
#define VALID_FORMAT_IFACE(str) \ #define VALID_FORMAT_IFACE(str) \
guestfs_int_string_is_valid ((str), 1, 0, \ guestfs_int_string_is_valid ((str), 1, 0, \
VALID_FLAG_ALPHA|VALID_FLAG_DIGIT, "-_") VALID_FLAG_ALPHA|VALID_FLAG_DIGIT, "-_")

View File

@@ -42,7 +42,7 @@ libluaguestfs_la_SOURCES = lua-guestfs.c
libluaguestfs_la_CPPFLAGS = \ libluaguestfs_la_CPPFLAGS = \
-DGUESTFS_PRIVATE=1 \ -DGUESTFS_PRIVATE=1 \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/lib -I$(top_builddir)/lib
libluaguestfs_la_CFLAGS = \ libluaguestfs_la_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \
@@ -50,7 +50,7 @@ libluaguestfs_la_CFLAGS = \
libluaguestfs_la_LIBADD = \ libluaguestfs_la_LIBADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \ $(LIBVIRT_LIBS) \
../gnulib/lib/libgnu.la ../gnulib/lib/libgnu.la

View File

@@ -282,5 +282,5 @@ AC_DEFINE_UNQUOTED([PATH_SEPARATOR],["$PATH_SEPARATOR"],
[Character that separates path elements in search paths]) [Character that separates path elements in search paths])
dnl Library versioning. dnl Library versioning.
MAX_PROC_NR=`cat $srcdir/src/MAX_PROC_NR` MAX_PROC_NR=`cat $srcdir/lib/MAX_PROC_NR`
AC_SUBST(MAX_PROC_NR) AC_SUBST(MAX_PROC_NR)

View File

@@ -31,7 +31,7 @@ virt_make_fs_CPPFLAGS = \
-DGUESTFS_WARN_DEPRECATED=1 \ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \ -I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-I$(top_srcdir)/fish \ -I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib -I$(srcdir)/../gnulib/lib -I../gnulib/lib
@@ -41,7 +41,7 @@ virt_make_fs_CFLAGS = \
virt_make_fs_LDADD = \ virt_make_fs_LDADD = \
$(top_builddir)/common/utils/libutils.la \ $(top_builddir)/common/utils/libutils.la \
$(top_builddir)/src/libguestfs.la \ $(top_builddir)/lib/libguestfs.la \
$(top_builddir)/fish/libfishcommon.la \ $(top_builddir)/fish/libfishcommon.la \
$(LIBXML2_LIBS) \ $(LIBXML2_LIBS) \
$(LTLIBINTL) \ $(LTLIBINTL) \

View File

@@ -111,7 +111,7 @@ libmllib_a_CPPFLAGS = \
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/common/utils \ -I$(top_srcdir)/common/utils \
-I$(top_srcdir)/src \ -I$(top_srcdir)/lib \
-I$(top_srcdir)/cat \ -I$(top_srcdir)/cat \
-I$(top_srcdir)/fish -I$(top_srcdir)/fish
libmllib_a_CFLAGS = \ libmllib_a_CFLAGS = \
@@ -122,13 +122,13 @@ libmllib_a_CFLAGS = \
BOBJECTS = $(SOURCES_ML:.ml=.cmo) BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx) XOBJECTS = $(BOBJECTS:.cmo=.cmx)
# -I $(top_builddir)/src/.libs is a hack which forces corresponding -L # -I $(top_builddir)/lib/.libs is a hack which forces corresponding -L
# option to be passed to gcc, so we don't try linking against an # option to be passed to gcc, so we don't try linking against an
# installed copy of libguestfs. # installed copy of libguestfs.
OCAMLPACKAGES = \ OCAMLPACKAGES = \
-package str,unix \ -package str,unix \
-I $(top_builddir)/common/utils/.libs \ -I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/src/.libs \ -I $(top_builddir)/lib/.libs \
-I $(top_builddir)/gnulib/lib/.libs \ -I $(top_builddir)/gnulib/lib/.libs \
-I $(top_builddir)/ocaml \ -I $(top_builddir)/ocaml \
-I $(builddir) -I $(builddir)
@@ -177,7 +177,7 @@ common_utils_tests_CPPFLAGS = \
-I. \ -I. \
-I$(top_builddir) \ -I$(top_builddir) \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/src -I$(top_srcdir)/lib
common_utils_tests_BOBJECTS = common_utils_tests.cmo common_utils_tests_BOBJECTS = common_utils_tests.cmo
common_utils_tests_XOBJECTS = $(common_utils_tests_BOBJECTS:.cmo=.cmx) common_utils_tests_XOBJECTS = $(common_utils_tests_BOBJECTS:.cmo=.cmx)
@@ -186,7 +186,7 @@ getopt_tests_CPPFLAGS = \
-I. \ -I. \
-I$(top_builddir) \ -I$(top_builddir) \
-I$(shell $(OCAMLC) -where) \ -I$(shell $(OCAMLC) -where) \
-I$(top_srcdir)/src -I$(top_srcdir)/lib
getopt_tests_BOBJECTS = getopt_tests.cmo getopt_tests_BOBJECTS = getopt_tests.cmo
getopt_tests_XOBJECTS = $(getopt_tests_BOBJECTS:.cmo=.cmx) getopt_tests_XOBJECTS = $(getopt_tests_BOBJECTS:.cmo=.cmx)

Some files were not shown because too many files have changed in this diff Show More