]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: split out xfs->libxfs mappings
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)
commitd72f6c8efe92fc6c5fc5914c508fc43e9fa10d03
treef276d378b1feb6e03a09657d34a56ece209e4513
parenta016903ab3870eafcd8561681e1366d1163e0185
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