Git fork
1/*
2 * Copyright (c) 2011, Google Inc.
3 */
4#ifndef STREAMING_H
5#define STREAMING_H 1
6
7#include "object.h"
8
9/* opaque */
10struct git_istream;
11struct stream_filter;
12
13struct git_istream *open_istream(struct repository *, const struct object_id *,
14 enum object_type *, unsigned long *,
15 struct stream_filter *);
16int close_istream(struct git_istream *);
17ssize_t read_istream(struct git_istream *, void *, size_t);
18
19int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek);
20
21#endif /* STREAMING_H */