]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: directly include libxfs headers
authorDave Chinner <dchinner@redhat.com>
Tue, 16 Dec 2014 03:24:20 +0000 (14:24 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 16 Dec 2014 03:24:20 +0000 (14:24 +1100)
commit3b4cd37fdcf1cf391b56875e6e597b6a8487b1b0
tree54637e0528ed69b95abeea91fe23cb194a589b1a
parent14e1ae2930f9d815b74557a2b9c6e277d7d97f97
libxfs: directly include libxfs headers

As a step closer to the kernel code, have the libxfs code explicitly
include the headers they require to compile. This causes lots of
churn in the include files but starts to bring sanity to current
include mess.

IOWs, this is the first step towards libxfs having a clean
internal/external API demarkation for userspace. The internal libxfs
build is controlled through libxfs/xfs.h, and that defines the
functions that are exported by the library via the libxfs_*
namespace. This also starts moving the internal header structure to
the same layout and dependencies as the kernel code so that we can
separate out include/libxfs.h so that it only needs to include other
header files and doesn't ave to provide lots of "work around kernel
oddities" and export function prototypes that the internal libxfs
code does not define prototypes for.

There's still lots of follow patches to make this a reality, but
this is the first major step in cleaning up the mess.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
58 files changed:
include/Makefile
include/libxfs.h
include/libxlog.h
include/xfs_inode.h [new file with mode: 0644]
include/xfs_mount.h [new file with mode: 0644]
include/xfs_trans.h [new file with mode: 0644]
libxfs/Makefile
libxfs/cache.c
libxfs/crc32.c
libxfs/init.c
libxfs/kmem.c
libxfs/libxfs_io.h [new file with mode: 0644]
libxfs/linux.c
libxfs/logitem.c
libxfs/radix-tree.c
libxfs/rdwr.c
libxfs/trans.c
libxfs/util.c
libxfs/xfs.h
libxfs/xfs_alloc.c
libxfs/xfs_alloc_btree.c
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_leaf.h
libxfs/xfs_attr_remote.c
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h
libxfs/xfs_bmap_btree.c
libxfs/xfs_btree.c
libxfs/xfs_da_btree.c
libxfs/xfs_da_format.c
libxfs/xfs_dir2.c
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_sf.c
libxfs/xfs_dquot_buf.c
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_fork.c
libxfs/xfs_log_rlimit.c
libxfs/xfs_rtbitmap.c
libxfs/xfs_sb.c
libxfs/xfs_symlink_remote.c
libxfs/xfs_trans_resv.c
libxlog/util.c
libxlog/xfs_log_recover.c
logprint/log_copy.c
logprint/log_dump.c
logprint/log_misc.c
logprint/log_print_all.c
logprint/log_print_trans.c
logprint/logprint.c
logprint/logprint.h
repair/phase2.c
repair/xfs_repair.c