libropkg: implement tar file reader
This commit is contained in:
17
libropkg/reader.h
Normal file
17
libropkg/reader.h
Normal 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
|
||||
Reference in New Issue
Block a user