blob: 5e4e6acfd0dc947bcb92680fbae71de1fc486a78 [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
Matheus Tavaresc8123e72020-01-30 17:32:20 -030011struct git_istream *open_istream(struct repository *, const struct object_id *,
12 enum object_type *, unsigned long *,
13 struct stream_filter *);
Denton Liu55454422019-04-29 04:28:14 -040014int close_istream(struct git_istream *);
15ssize_t read_istream(struct git_istream *, void *, size_t);
Junio C Hamano46bf0432011-05-11 19:30:25 -070016
Denton Liu55454422019-04-29 04:28:14 -040017int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek);
Junio C Hamano47a02ff2012-03-07 17:54:15 +070018
Junio C Hamano46bf0432011-05-11 19:30:25 -070019#endif /* STREAMING_H */