]> git.ipfire.org Git - thirdparty/git.git/blame - streaming.h
Git 2.45-rc0
[thirdparty/git.git] / streaming.h
CommitLineData
46bf0438
JH
1/*
2 * Copyright (c) 2011, Google Inc.
3 */
4#ifndef STREAMING_H
5#define STREAMING_H 1
a6dc3d36
EN
6
7#include "object.h"
46bf0438
JH
8
9/* opaque */
10struct git_istream;
a6dc3d36 11struct stream_filter;
46bf0438 12
c8123e72
MT
13struct git_istream *open_istream(struct repository *, const struct object_id *,
14 enum object_type *, unsigned long *,
15 struct stream_filter *);
55454427
DL
16int close_istream(struct git_istream *);
17ssize_t read_istream(struct git_istream *, void *, size_t);
46bf0438 18
55454427 19int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek);
47a02ff2 20
46bf0438 21#endif /* STREAMING_H */