libropkg: implement tar file reader

This commit is contained in:
2025-08-06 22:11:02 +01:00
parent f2caad8251
commit 22510ca52c
3 changed files with 289 additions and 0 deletions

17
libropkg/reader.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _READER_H_
#define _READER_H_
#include "tar.h"
#include <blue/compress/cstream.h>
#include <ropkg/reader.h>
struct ropkg_reader {
b_cstream *r_stream;
struct ustar_header r_cur_header;
size_t r_cur_header_offset;
struct ropkg_file_info f_cur_file;
bool r_eof;
};
#endif