feat: start of archive generation for new manager
This commit is contained in:
parent
cc2dc9b28f
commit
2e0c6d1fa6
7 changed files with 90 additions and 22 deletions
|
|
@ -11,6 +11,8 @@ pub struct Builder {
|
|||
consumed: bool,
|
||||
}
|
||||
|
||||
unsafe impl Send for Builder {}
|
||||
|
||||
impl Builder {
|
||||
pub fn new() -> Self {
|
||||
Builder::default()
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ pub struct FileWriter {
|
|||
closed: bool,
|
||||
}
|
||||
|
||||
unsafe impl Send for FileWriter {}
|
||||
|
||||
impl Handle for FileWriter {
|
||||
unsafe fn handle(&self) -> *const ffi::Struct_archive {
|
||||
self.handle as *const _
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ pub struct WriteEntry {
|
|||
entry: *mut ffi::Struct_archive_entry,
|
||||
}
|
||||
|
||||
unsafe impl Send for WriteEntry {}
|
||||
|
||||
impl WriteEntry {
|
||||
pub fn new() -> Self {
|
||||
let entry = unsafe { ffi::archive_entry_new() };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue