core: stream: Add stream file operations

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-04-30 12:49:41 -04:00
parent 0f31d51743
commit e1181bed6f
2 changed files with 86 additions and 0 deletions
+15
View File
@@ -19,4 +19,19 @@ struct data_stream {
size_t length;
};
/*
* Obtain a stream from a file
*
* @stmp: Stream pointer result
* @path: Path of file to obtain stream from
*
* Returns zero on success
*/
int stream_from_file(struct data_stream *stmp, const char *path);
/*
* Destroy a data stream
*/
void stream_destroy(struct data_stream *stmp);
#endif /* !BLOBCHAIN_STREAM_H */