mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
17 lines
298 B
C++
17 lines
298 B
C++
#include <iostream>
|
|
|
|
#include "libarchive_sapi.sapi.h"
|
|
|
|
int main() {
|
|
std::cout << "WORKS2" << std::endl;
|
|
|
|
LibarchiveSandbox sandbox;
|
|
sandbox.Init().IgnoreError();
|
|
LibarchiveApi api(&sandbox);
|
|
|
|
if (api.archive_write_disk_new().ok()) {
|
|
std::cout << "OK" << std::endl;
|
|
}
|
|
|
|
return 0;
|
|
} |