Junio C Hamano | 46bf043 | 2011-05-11 19:30:25 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011, Google Inc. |
| 3 | */ |
| 4 | #ifndef STREAMING_H |
| 5 | #define STREAMING_H 1 |
| 6 | #include "cache.h" |
| 7 | |
| 8 | /* opaque */ |
| 9 | struct git_istream; |
| 10 | |
Matheus Tavares | c8123e7 | 2020-01-30 17:32:20 -0300 | [diff] [blame] | 11 | struct git_istream *open_istream(struct repository *, const struct object_id *, |
| 12 | enum object_type *, unsigned long *, |
| 13 | struct stream_filter *); |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 14 | int close_istream(struct git_istream *); |
| 15 | ssize_t read_istream(struct git_istream *, void *, size_t); |
Junio C Hamano | 46bf043 | 2011-05-11 19:30:25 -0700 | [diff] [blame] | 16 | |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 17 | int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek); |
Junio C Hamano | 47a02ff | 2012-03-07 17:54:15 +0700 | [diff] [blame] | 18 | |
Junio C Hamano | 46bf043 | 2011-05-11 19:30:25 -0700 | [diff] [blame] | 19 | #endif /* STREAMING_H */ |