blob: 1d05c2a465c2c26f26b15a1a07cce6282ee5c0c3 [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
Junio C Hamano47a02ff2012-03-07 17:54:15 +070015extern int stream_blob_to_fd(int fd, const unsigned char *, struct stream_filter *, int can_seek);
16
Junio C Hamano46bf0432011-05-11 19:30:25 -070017#endif /* STREAMING_H */