]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: directly include libxfs headers
authorDave Chinner <dchinner@redhat.com>
Sun, 10 May 2015 23:30:14 +0000 (09:30 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 10 May 2015 23:30:14 +0000 (09:30 +1000)
commit3abc69fdc417e9d3dc0040000a9f05cb828d518d
treee1d911a669591adab4075cf0e21cc259782a47c2
parenteceed935bc90d5f6a64bb85cb74feb412c5c8da5
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>
57 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_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