Hermes
0.7.0
Linux game streaming host
Toggle main menu visibility
Loading...
Searching...
No Matches
card_broker.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include <optional>
8
#include <string>
9
10
#include <sys/types.h>
11
12
namespace
VDISPLAY::card_broker {
13
22
struct
card_t
{
23
std::string
name
;
24
std::string
card_path
;
25
std::string
render_node_path
;
26
};
27
34
bool
available
();
35
52
std::optional<card_t>
create
(std::optional<uid_t> session_account_uid = std::nullopt);
53
59
bool
remove
(
const
std::string &name);
60
69
int
sweep
();
70
71
}
// namespace VDISPLAY::card_broker
VDISPLAY::card_broker::available
bool available()
Whether a broker socket is there to talk to.
Definition
card_broker.cpp:225
VDISPLAY::card_broker::remove
bool remove(const std::string &name)
Remove a card this user created. Removal is a hot-unplug, so a compositor still holding the card sees...
Definition
card_broker.cpp:249
VDISPLAY::card_broker::sweep
int sweep()
Remove every card this user still holds, and report how many went.
Definition
card_broker.cpp:256
VDISPLAY::card_broker::create
std::optional< card_t > create(std::optional< uid_t > session_account_uid)
Ask for a new card on a private DRM seat.
Definition
card_broker.cpp:230
VDISPLAY::card_broker::card_t
A card the broker created, and the device nodes it was given.
Definition
card_broker.h:22
VDISPLAY::card_broker::card_t::card_path
std::string card_path
/dev/dri/cardN, root-only and reached through the seat broker.
Definition
card_broker.h:24
VDISPLAY::card_broker::card_t::name
std::string name
configfs group name, needed to remove it again.
Definition
card_broker.h:23
VDISPLAY::card_broker::card_t::render_node_path
std::string render_node_path
/dev/dri/renderDN, owned by this user once udev has run.
Definition
card_broker.h:25
src
platform
linux
card_broker.h
Generated by
1.18.0