input-capture: code cleanup

This commit is contained in:
Gwilherm Folliot 2024-09-26 11:58:04 +02:00
parent 7ff7fcff62
commit 3eb72b057e
No known key found for this signature in database
GPG key ID: 90236D3623DCD660
7 changed files with 4 additions and 21 deletions

View file

@ -63,7 +63,6 @@ pkg_check_modules(
libspa-0.2
libdrm
libeis-1.0
dbus-1
gbm
hyprlang>=0.2.0
hyprutils>=0.2.6

View file

@ -1,10 +1,7 @@
#include "PortalManager.hpp"
#include "../helpers/Log.hpp"
#include "../helpers/MiscFunctions.hpp"
#include "wayland.hpp"
#include <hyprutils/memory/SharedPtr.hpp>
#include <memory>
#include <pipewire/pipewire.h>
#include <poll.h>
#include <sys/mman.h>
@ -12,7 +9,6 @@
#include <unistd.h>
#include <thread>
#include <vector>
SOutput::SOutput(SP<CCWlOutput> output_) : output(output_) {
output->setName([this](CCWlOutput* o, const char* name_) {

View file

@ -1,9 +1,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <sdbus-c++/sdbus-c++.h>
#include <hyprlang.hpp>
#include "wayland.hpp"

View file

@ -2,14 +2,11 @@
#include "../core/PortalManager.hpp"
#include "../helpers/Log.hpp"
#include "../shared/Session.hpp"
#include "hyprland-input-capture-v1.hpp"
#include "shared/Session.hpp"
#include "src/shared/Eis.hpp"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <sdbus-c++/IConnection.h>
#include <sdbus-c++/Types.h>
#include <string>
#include <sys/socket.h>
#include <sys/un.h>

View file

@ -1,14 +1,9 @@
#pragma once
#include "hyprland-input-capture-v1.hpp"
#include "shared/Eis.hpp"
#include <cstdint>
#include <sdbus-c++/Types.h>
#include <sdbus-c++/sdbus-c++.h>
#include <string>
#include <unordered_map>
#include <wayland-client-protocol.h>
#include "../shared/Eis.hpp"
#include "../includes.hpp"
#include "../shared/Session.hpp"
#include <sdbus-c++/Types.h>
typedef int ClientStatus;
const ClientStatus CREATED = 0; //Is ready to be activated

View file

@ -1,8 +1,7 @@
#include "Eis.hpp"
#include "core/PortalManager.hpp"
#include "../core/PortalManager.hpp"
#include "src/helpers/Log.hpp"
#include <libeis.h>
#include <string>
#include <sys/poll.h>
#include <thread>

View file

@ -2,7 +2,6 @@
#include <libeis.h>
#include <string>
#include <sys/socket.h>
struct EisClient {
struct eis_client* handle;