mirror of
https://github.com/yshui/picom.git
synced 2025-04-07 17:44:04 -04:00
20 lines
367 B
C
20 lines
367 B
C
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) Yuxuan Shui <yshuiv7@gmail.com>
|
|
|
|
#pragma once
|
|
#include <stdbool.h>
|
|
#include <sys/types.h>
|
|
|
|
#ifdef CONFIG_DBUS
|
|
|
|
#include <dbus/dbus.h>
|
|
|
|
bool rtkit_make_realtime(long thread, int priority);
|
|
|
|
#else
|
|
|
|
static inline bool rtkit_make_realtime(pid_t thread attr_unused, int priority attr_unused) {
|
|
return false;
|
|
}
|
|
|
|
#endif
|