X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=send-stream.h;h=39901f86b615837c4217fff90c83c1c910367b09;hb=9708f0d54e0381017114c0a4ca1f48e7aa8a8bbc;hp=b69b7f16cc40769a4755848b786fca0eff3b927e;hpb=f1c24cd80dfd037407cdee85181646adca6dd5bb;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/send-stream.h b/send-stream.h index b69b7f1..39901f8 100644 --- a/send-stream.h +++ b/send-stream.h @@ -15,8 +15,24 @@ * 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, @@ -49,10 +65,16 @@ struct btrfs_send_ops { int (*utimes)(const char *path, struct timespec *at, struct timespec *mt, struct timespec *ct, void *user); + int (*update_extent)(const char *path, u64 offset, u64 len, void *user); }; int btrfs_read_and_process_send_stream(int fd, - struct btrfs_send_ops *ops, void *user); + struct btrfs_send_ops *ops, void *user, + int honor_end_cmd, + u64 max_errors); +#ifdef __cplusplus +} +#endif -#endif /* SEND_STREAM_H_ */ +#endif