blob: bd27f59e5764aec64cd1cf927baf213fcec4d893 [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
Elijah Newrena6dc3d32023-03-21 06:25:53 +00006
7#include "object.h"
Junio C Hamano46bf0432011-05-11 19:30:25 -07008
9/* opaque */
10struct git_istream;
Elijah Newrena6dc3d32023-03-21 06:25:53 +000011struct stream_filter;
Junio C Hamano46bf0432011-05-11 19:30:25 -070012
Matheus Tavaresc8123e72020-01-30 17:32:20 -030013struct git_istream *open_istream(struct repository *, const struct object_id *,
14 enum object_type *, unsigned long *,
15 struct stream_filter *);
Denton Liu55454422019-04-29 04:28:14 -040016int close_istream(struct git_istream *);
17ssize_t read_istream(struct git_istream *, void *, size_t);
Junio C Hamano46bf0432011-05-11 19:30:25 -070018
Denton Liu55454422019-04-29 04:28:14 -040019int stream_blob_to_fd(int fd, const struct object_id *, struct stream_filter *, int can_seek);
Junio C Hamano47a02ff2012-03-07 17:54:15 +070020
Junio C Hamano46bf0432011-05-11 19:30:25 -070021#endif /* STREAMING_H */