NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
packaging.hpp File Reference
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  nah::AppInstallOptions
 
struct  nah::AppInstallResult
 
struct  nah::CollectResult
 
struct  nah::NakInstallOptions
 
struct  nah::NakInstallResult
 
struct  nah::NakPackInfo
 
struct  nah::NapPackageInfo
 
struct  nah::PackResult
 
struct  nah::PathValidation
 
struct  nah::TarEntry
 
struct  nah::UninstallResult
 
struct  nah::UnpackResult
 
struct  nah::VerifyResult
 

Namespaces

namespace  nah
 

Enumerations

enum class  nah::TarEntryType {
  nah::RegularFile , nah::Directory , nah::Symlink , nah::Hardlink ,
  nah::Other
}
 

Functions

CollectResult nah::collect_directory_entries (const std::string &dir_path)
 
PackResult nah::create_deterministic_archive (const std::vector< TarEntry > &entries)
 
UnpackResult nah::extract_archive_safe (const std::string &archive_path, const std::string &staging_dir)
 
UnpackResult nah::extract_archive_safe (const std::vector< uint8_t > &archive_data, const std::string &staging_dir)
 
NakPackInfo nah::inspect_nak_pack (const std::string &pack_path)
 
NakPackInfo nah::inspect_nak_pack (const std::vector< uint8_t > &archive_data)
 
NapPackageInfo nah::inspect_nap_package (const std::string &package_path)
 
NapPackageInfo nah::inspect_nap_package (const std::vector< uint8_t > &archive_data)
 
AppInstallResult nah::install_app (const std::string &source, const AppInstallOptions &options)
 
NakInstallResult nah::install_nak (const std::string &source, const NakInstallOptions &options)
 
NakInstallResult nah::install_nak_pack (const std::string &pack_path, const NakInstallOptions &options)
 
AppInstallResult nah::install_nap_package (const std::string &package_path, const AppInstallOptions &options)
 
PackResult nah::pack_directory (const std::string &dir_path)
 
PackResult nah::pack_nak (const std::string &dir_path)
 
PackResult nah::pack_nap (const std::string &dir_path)
 
UninstallResult nah::uninstall_app (const std::string &nah_root, const std::string &app_id, const std::string &version="")
 
UninstallResult nah::uninstall_nak (const std::string &nah_root, const std::string &nak_id, const std::string &version)
 
PathValidation nah::validate_extraction_path (const std::string &entry_path, const std::string &extraction_root)
 
VerifyResult nah::verify_app (const std::string &nah_root, const std::string &app_id, const std::string &version="")