1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 03:21:16 +02:00
This commit is contained in:
Eelco Dolstra 2019-12-19 14:47:18 +01:00
commit ee235e764c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
17 changed files with 128 additions and 182 deletions

View file

@ -1,22 +1,4 @@
use super::{
error,
foreign::{self},
store::path,
store::StorePath,
util,
};
#[no_mangle]
pub unsafe extern "C" fn unpack_tarfile(
source: foreign::Source,
dest_dir: &str,
out: *mut Result<(), error::CppException>,
) {
out.write(
util::tarfile::unpack_tarfile(source, std::path::Path::new(dest_dir))
.map_err(|err| err.into()),
);
}
use super::{error, store::path, store::StorePath, util};
#[no_mangle]
pub unsafe extern "C" fn ffi_String_new(s: &str, out: *mut String) {