mirror of
https://github.com/MrLowPr/overdrive.git
synced 2026-10-18 14:01:06 +02:00
18 lines
783 B
C++
18 lines
783 B
C++
// Copyright (C) 2026 half144 and PS5 React contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Additional attribution term: see LICENSE-ATTRIBUTION.
|
|
#pragma once
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
// PKG installation through the console's app-install service, one package at a time.
|
|
namespace packages {
|
|
// `status`: the console's install stage ("transferring", "promoting", "playable").
|
|
struct Snapshot { std::uint32_t id = 0; std::string state = "queued", error, content_id, status; std::uint64_t written = 0, total = 0; };
|
|
std::uint32_t install(std::string path, std::string name, std::string& error);
|
|
// Stops reporting; an install the console already accepted carries on.
|
|
void cancel(std::uint32_t id);
|
|
std::vector<Snapshot> poll();
|
|
void stop();
|
|
}
|