> > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > > > The topology functions live in libfrog now, which means their > > declarations don't belong in libxcmd.h. Create new header file for > > them. > > > > Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > --- > > include/libxcmd.h | 31 ------------------------------- > > include/topology.h | 39 +++++++++++++++++++++++++++++++++++++++ > > libfrog/topology.c | 1 + > > mkfs/xfs_mkfs.c | 2 +- > > repair/sb.c | 1 + > > 5 files changed, 42 insertions(+), 32 deletions(-) > > create mode 100644 include/topology.h > > I like the idea, but I'm wondering if we should have a similar > setup to libxfs header files here. > > i.e. the header file lives in libfrog/, and the install-headers make > command creates include/libxfrog and links them for the build. That > way the includes become namespaced like: > > #include "libxfrog/topology,h" > > and we don't pollute include with random header files from all > different parts of xfsprogs... What if I leave topology.h in libfrog/ and then create an include/libfrog.h that pulls in all the libfrog header files like libxfs.h does, and then put -I$(TOPDIR)/libfrog in GCFLAGS? --D > Cheers, > > Dave. > -- > Dave Chinner > david@xxxxxxxxxxxxx