]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: split out xfs->libxfs mappings libxfs-3.19-update
authorDave Chinner <dchinner@redhat.com>
Fri, 19 Dec 2014 04:23:55 +0000 (15:23 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 19 Dec 2014 04:23:55 +0000 (15:23 +1100)
commit13ea6a1353edb57025789337d084d430264eef1b
treebb3219af4677af19f239a6fbdb7e49402b872887
parenta44e9006f25b5c655e68b285319a781d0bf61b7a
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/support/libxfs_api_defs.h [new file with mode: 0644]
libxfs/support/libxfs_priv.h
libxfs/xfs_alloc.h
libxfs/xfs_bmap.h
libxfs/xfs_inode_buf.h
repair/phase6.c