]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: split out xfs->libxfs mappings libxfs-4.1-update
authorDave Chinner <dchinner@redhat.com>
Fri, 5 Jun 2015 00:14:01 +0000 (10:14 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 5 Jun 2015 00:14:01 +0000 (10:14 +1000)
commite104a5b516157f574574ca11a5a03fb7f23cc45b
treecd7ecf18e2d776e3d91ddc9a240b8e5723df953c
parentc7e9ce382d4b2af1f48c163d301951a599b43903
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