builtin/stash: fix leak in `show_stash()`
[git/gitster.git] / streaming.h
blobbd27f59e5764aec64cd1cf927baf213fcec4d893
1 /*
2 * Copyright (c) 2011, Google Inc.
3 */
4 #ifndef STREAMING_H
5 #define STREAMING_H 1
7 #include "object.h"
9 /* opaque */
10 struct git_istream;
11 struct stream_filter;
13 struct git_istream *open_istream(struct repository *, const struct object_id *,
14 enum object_type *, unsigned long *,
15 struct stream_filter *);
16 int close_istream(struct git_istream *);
17 ssize_t read_istream(struct git_istream *, void *, size_t);
19 int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek);
21 #endif /* STREAMING_H */