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 | |
Junio C Hamano | b669109 | 2011-05-20 14:33:31 -0700 | [diff] [blame] | 11 | extern struct git_istream *open_istream(const unsigned char *, enum object_type *, unsigned long *, struct stream_filter *); |
Junio C Hamano | 46bf043 | 2011-05-11 19:30:25 -0700 | [diff] [blame] | 12 | extern int close_istream(struct git_istream *); |
René Scharfe | 6163cd8 | 2012-05-03 08:51:00 +0700 | [diff] [blame] | 13 | extern ssize_t read_istream(struct git_istream *, void *, size_t); |
Junio C Hamano | 46bf043 | 2011-05-11 19:30:25 -0700 | [diff] [blame] | 14 | |
Junio C Hamano | 47a02ff | 2012-03-07 17:54:15 +0700 | [diff] [blame] | 15 | extern int stream_blob_to_fd(int fd, const unsigned char *, struct stream_filter *, int can_seek); |
| 16 | |
Junio C Hamano | 46bf043 | 2011-05-11 19:30:25 -0700 | [diff] [blame] | 17 | #endif /* STREAMING_H */ |