aboutsummaryrefslogtreecommitdiff
path: root/dbus/portal.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-05-10 17:10:59 +0200
committerdec05eba <dec05eba@protonmail.com>2025-05-10 17:10:59 +0200
commite3225bc62835c6accc18787c6038fc1dce2484fc (patch)
tree56c22deacd2a1101ad82ecc80ad300896e6c872f /dbus/portal.h
parent811a14481dbd75fe2c2a072517e06add336fee4f (diff)
Move dbus code to a separate process to allow gpu-screen-recorder to use cap_sys_nice for better recording performance on amd
Diffstat (limited to 'dbus/portal.h')
-rw-r--r--dbus/portal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/dbus/portal.h b/dbus/portal.h
new file mode 100644
index 0000000..6b93aa6
--- /dev/null
+++ b/dbus/portal.h
@@ -0,0 +1,17 @@
+#ifndef GSR_PORTAL_H
+#define GSR_PORTAL_H
+
+typedef enum {
+ GSR_PORTAL_CAPTURE_TYPE_MONITOR = 1 << 0,
+ GSR_PORTAL_CAPTURE_TYPE_WINDOW = 1 << 1,
+ GSR_PORTAL_CAPTURE_TYPE_VIRTUAL = 1 << 2,
+ GSR_PORTAL_CAPTURE_TYPE_ALL = GSR_PORTAL_CAPTURE_TYPE_MONITOR | GSR_PORTAL_CAPTURE_TYPE_WINDOW | GSR_PORTAL_CAPTURE_TYPE_VIRTUAL
+} gsr_portal_capture_type;
+
+typedef enum {
+ GSR_PORTAL_CURSOR_MODE_HIDDEN = 1 << 0,
+ GSR_PORTAL_CURSOR_MODE_EMBEDDED = 1 << 1,
+ GSR_PORTAL_CURSOR_MODE_METADATA = 1 << 2
+} gsr_portal_cursor_mode;
+
+#endif /* GSR_PORTAL_H */