diff options
author | Gyuhwan Park★ <unstabler@unstabler.pl> | 2023-01-28 18:38:50 +0300 |
---|---|---|
committer | Gyuhwan Park★ <unstabler@unstabler.pl> | 2023-01-28 18:38:50 +0300 |
commit | dd4b1559c0e59a93927ef3925f0c9ea5cd21b43a (patch) | |
tree | e733a62d5adc4d7046efb3b4ddc94f76640b07ad /XrdpUlalacaPrivate.hpp | |
parent | 7ef772c54ff216fee6c8a73198bf6c219887f8d3 (diff) |
refactor: clean-up code, try to fix incomprehensible naming
Diffstat (limited to 'XrdpUlalacaPrivate.hpp')
-rw-r--r-- | XrdpUlalacaPrivate.hpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/XrdpUlalacaPrivate.hpp b/XrdpUlalacaPrivate.hpp index 45b0136..588d52d 100644 --- a/XrdpUlalacaPrivate.hpp +++ b/XrdpUlalacaPrivate.hpp @@ -22,12 +22,12 @@ extern "C" { #include "UnixSocket.hpp" -#include "messages/projector.h" +#include "ProjectionTarget.hpp" struct XrdpUlalaca; class ProjectionThread; -class XrdpUlalacaPrivate { +class XrdpUlalacaPrivate: public ProjectionTarget { public: constexpr static const int RECT_SIZE_BYPASS_CREATE = 0; @@ -63,11 +63,16 @@ public: const std::string &password ); + /** + * attach to projector session + */ + void attachToSession(std::string sessionPath); + /* paint related */ inline int decideCopyRectSize() const; - inline std::unique_ptr<std::vector<Rect>> createCopyRects(std::vector<Rect> &dirtyRects, int rectSize) const; + inline std::unique_ptr<std::vector<ULIPCRect>> createCopyRects(std::vector<ULIPCRect> &dirtyRects, int rectSize) const; - void addDirtyRect(Rect &rect); + void addDirtyRect(ULIPCRect &rect); void commitUpdate(const uint8_t *image, int32_t width, int32_t height); void calculateSessionSize(); |