mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-27 00:22:22 +00:00
btrfs-progs: remove BTRFS_FLAT_INCLUDES from internal send headers
There's a separate copy of the headers, we can remove the include switch from the internal copies. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6b5c089469
commit
35882be40a
@ -19,20 +19,7 @@
|
||||
#ifndef __BTRFS_SEND_STREAM_H__
|
||||
#define __BTRFS_SEND_STREAM_H__
|
||||
|
||||
/*
|
||||
* NOTE: this file is public API, any incompatible change has to update
|
||||
* library version
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
||||
struct btrfs_send_ops {
|
||||
int (*subvol)(const char *path, const u8 *uuid, u64 ctransid,
|
||||
@ -73,8 +60,4 @@ int btrfs_read_and_process_send_stream(int fd,
|
||||
int honor_end_cmd,
|
||||
u64 max_errors);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -19,19 +19,9 @@
|
||||
#ifndef __BTRFS_SEND_UTILS_H__
|
||||
#define __BTRFS_SEND_UTILS_H__
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "kernel-shared/ctree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/ctree.h>
|
||||
#include <btrfs/rbtree.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Compatibility code for kernels < 3.12; the UUID tree is not available there
|
||||
@ -107,8 +97,4 @@ int btrfs_subvolid_resolve(int fd, char *path, size_t path_len, u64 subvol_id);
|
||||
int path_cat_out(char *out, const char *p1, const char *p2);
|
||||
int path_cat3_out(char *out, const char *p1, const char *p2, const char *p3);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "kernel-shared/send.h"
|
||||
#include "common/send-stream.h"
|
||||
#include "libbtrfs/send-stream.h"
|
||||
#include "crypto/crc32c.h"
|
||||
#include "common/utils.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include "kernel-shared/ctree.h"
|
||||
#include "common/send-utils.h"
|
||||
#include "libbtrfs/send-utils.h"
|
||||
#include "common/messages.h"
|
||||
#include "common/utils.h"
|
||||
#include "ioctl.h"
|
||||
|
Loading…
Reference in New Issue
Block a user