23 lines
445 B
C++
23 lines
445 B
C++
#pragma once
|
|
|
|
#include "options.hpp"
|
|
#include "viewer_state.hpp"
|
|
|
|
#include <rfb/rfbclient.h>
|
|
|
|
#include <memory>
|
|
|
|
namespace wayviewer {
|
|
|
|
struct ClientContext {
|
|
Options* options = nullptr;
|
|
ViewerState* state = nullptr;
|
|
};
|
|
|
|
using RfbClientPtr = std::unique_ptr<rfbClient, decltype(&rfbClientCleanup)>;
|
|
|
|
const char* sdlScaleFilter(Quality quality);
|
|
RfbClientPtr createClient(Options& options, ViewerState& state, ClientContext& context);
|
|
|
|
}
|