| 1 | // SPDX-License-Identifier: MPL-2.0 |
| 2 | // Copyright (c) Yuxuan Shui <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | #include <stdbool.h> |
| 6 | #include <sys/types.h> |
| 7 | |
| 8 | #include "compiler.h" |
| 9 | |
| 10 | #ifdef CONFIG_DBUS |
| 11 | |
| 12 | #include <dbus/dbus.h> |
| 13 | |
| 14 | bool rtkit_make_realtime(long thread, int priority); |
| 15 | |
| 16 | #else |
| 17 | |
| 18 | static inline bool rtkit_make_realtime(pid_t thread attr_unused, int priority attr_unused) { |
| 19 | return false; |
| 20 | } |
| 21 | |
| 22 | #endif |