X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=send-stream.h;h=39901f86b615837c4217fff90c83c1c910367b09;hb=457a288cb5c7dccd88632dab5a903bd00a2142f0;hp=17bc6692a047c305e8d109531afc45f118256a65;hpb=46de1a6ec3dbb0db203baa6c46cb64ba9b000ea2;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/send-stream.h b/send-stream.h index 17bc669..39901f8 100644 --- a/send-stream.h +++ b/send-stream.h @@ -15,13 +15,25 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ -#ifndef SEND_STREAM_H_ -#define SEND_STREAM_H_ + +#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 +#endif /* BTRFS_FLAT_INCLUDES */ + struct btrfs_send_ops { int (*subvol)(const char *path, const u8 *uuid, u64 ctransid, void *user); @@ -58,10 +70,11 @@ struct btrfs_send_ops { int btrfs_read_and_process_send_stream(int fd, struct btrfs_send_ops *ops, void *user, - int honor_end_cmd); + int honor_end_cmd, + u64 max_errors); #ifdef __cplusplus } #endif -#endif /* SEND_STREAM_H_ */ +#endif