lib: Move utilities to new directory common/utils.

Just code motion.

This commit makes it clearer what is a utility and what is part of the
library.  It also makes it clear that we should rename:

  guestfs-internal-frontend.h -> utils.h
  guestfs-internal-frontend-cleanups.h -> cleanups.h (?)

but this commit does not make that change.
This commit is contained in:
Richard W.M. Jones
2017-01-19 15:53:19 +00:00
parent 88c0ce2397
commit b53cec584d
61 changed files with 235 additions and 103 deletions

View File

@@ -67,13 +67,14 @@ libguestfsmod_la_SOURCES = \
libguestfsmod_la_CPPFLAGS = \
-DGUESTFS_PRIVATE=1 \
$(PYTHON_CFLAGS) \
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
-I$(top_srcdir)/src -I$(top_builddir)/src
libguestfsmod_la_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS)
libguestfsmod_la_LIBADD = \
$(top_builddir)/src/libutils_la-utils.lo \
$(top_builddir)/common/utils/libutils_la-utils.lo \
$(top_builddir)/src/libguestfs.la
libguestfsmod_la_LDFLAGS = -avoid-version -shared -module -shrext $(PYTHON_EXT_SUFFIX)
@@ -117,13 +118,13 @@ guestfs-internal-all.h:
ln $(top_srcdir)/src/guestfs-internal-all.h $@
guestfs-internal-frontend-cleanups.h:
ln $(top_srcdir)/src/guestfs-internal-frontend-cleanups.h $@
ln $(top_srcdir)/common/utils/guestfs-internal-frontend-cleanups.h $@
guestfs-internal-frontend.h:
ln $(top_srcdir)/src/guestfs-internal-frontend.h $@
ln $(top_srcdir)/common/utils/guestfs-internal-frontend.h $@
utils.c:
ln $(top_srcdir)/src/utils.c $@
ln $(top_srcdir)/common/utils/utils.c $@
# Tests.