]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/Makefile
libxfs: split out xfs->libxfs mappings
authorDave Chinner <dchinner@redhat.com>
Thu, 30 Jul 2015 22:58:07 +0000 (08:58 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 30 Jul 2015 22:58:07 +0000 (08:58 +1000)
commite515cca12320669f2c29d4a9bd4646fbfb37963c
tree73de87c114629b3c949629fa07314dbbcc4feeaa
parent9c7998278d0905fb10ffcad05f053084c21f2648
libxfs: split out xfs->libxfs mappings

The defines that map the external libxfs namespace are found only in
libxfs_priv.h. That means we have to re-declare all the exported
function prototypes in libxfs.h so that external uses know about
them and can use them. This also means we effectively have duplicate
function prototypes as they are all already declared in the xfs_*
namespace due to the includes of the libxfs header files through
libxfs.h.

Split the mapping macros out from libxfs_priv.h into a separate
libxfs_api_defs.h and include that header file directly in both
libxfs-priv.h and libxfs.h before we include any other header file.
This means that all the xfs_* namespace definitions are mapped to
libxfs_* namespaces correctly and we don't need to have duplicate
prototypes.

This also points out all the function prototypes the external code
uses but does not have function prototypes exposed by the mapped
libxfs header files, and hence indicates future kernel/user libxfs
synchronisation work that needs to be done.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
include/libxfs.h
libxfs/Makefile
libxfs/libxfs_api_defs.h [new file with mode: 0644]
libxfs/libxfs_priv.h
libxfs/xfs_alloc.h
libxfs/xfs_bmap.h
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_buf.h
repair/phase6.c