zdump/zfuse: Extract zfuse.h header from zgetdump.h

Create a separate C header for FUSE to separate independent things and
make it more readable.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Alexander Egorenkov
2021-10-11 15:19:20 +02:00
committed by Jan Höppner
parent 1e450e6f7b
commit afb14cba7a
4 changed files with 31 additions and 14 deletions

View File

@@ -57,18 +57,4 @@ extern struct zgetdump_globals {
extern void opts_parse(int argc, char *argv[]);
extern int stdout_write_dump(void);
#if HAVE_FUSE == 0
static inline int zfuse_mount_dump(void)
{
ERR_EXIT("Program compiled without fuse support");
}
static inline void zfuse_umount(void)
{
ERR_EXIT("Program compiled without fuse support");
}
#else
int zfuse_mount_dump(void);
void zfuse_umount(void);
#endif
#endif /* ZGETDUMP_H */