mirror of
https://github.com/MrLowPr/overdrive.git
synced 2026-10-19 22:01:14 +02:00
15 lines
512 B
C++
15 lines
512 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>
|
|
namespace browser_capture {
|
|
struct Snapshot { std::uint32_t id = 0; std::string state = "queued", error, url; };
|
|
std::uint32_t capture(std::string prefix, std::string suffix, int timeout, std::string& error);
|
|
void cancel(std::uint32_t id);
|
|
std::vector<Snapshot> poll();
|
|
void stop();
|
|
}
|