blob: 73c1d156b352898c9b5661a3e480f579b80c5a00 [file] [log] [blame]
Junio C Hamano46bf0432011-05-11 19:30:25 -07001/*
2 * Copyright (c) 2011, Google Inc.
3 */
4#ifndef STREAMING_H
5#define STREAMING_H 1
6#include "cache.h"
7
8/* opaque */
9struct git_istream;
10
Junio C Hamanob6691092011-05-20 14:33:31 -070011extern struct git_istream *open_istream(const unsigned char *, enum object_type *, unsigned long *, struct stream_filter *);
Junio C Hamano46bf0432011-05-11 19:30:25 -070012extern int close_istream(struct git_istream *);
René Scharfe6163cd82012-05-03 08:51:00 +070013extern ssize_t read_istream(struct git_istream *, void *, size_t);
Junio C Hamano46bf0432011-05-11 19:30:25 -070014
brian m. carlson7eda0e42016-09-05 20:07:59 +000015extern int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek);
Junio C Hamano47a02ff2012-03-07 17:54:15 +070016
Junio C Hamano46bf0432011-05-11 19:30:25 -070017#endif /* STREAMING_H */