gamemode: add stage2 client

This commit is contained in:
Ali Chraghi 2022-09-02 11:00:40 +04:30 committed by Stephen Gutekanst
parent 2451d9e92b
commit a945046224
3 changed files with 1766 additions and 122 deletions

View file

@ -1,7 +1,10 @@
//! Note: All the above requests can be blocking - dbus requests can and will block while the daemon
//! handles the request. It is not recommended to make these calls in performance critical code
pub const c = @import("gamemode_client.zig");
const builtin = @import("builtin");
pub const c = if (builtin.zig_backend == .stage1)
@import("gamemode_client_stage1.zig")
else
@import("gamemode_client.zig");
pub const GamemodeError = error{
RequestFailed,