summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtkit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rtkit.h b/rtkit.h
index c5aa390..2081b4e 100644
--- a/rtkit.h
+++ b/rtkit.h
@@ -30,6 +30,10 @@
#include <sys/types.h>
#include <dbus/dbus.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* This is the reference implementation for a client for
* RealtimeKit. You don't have to use this, but if do, just copy these
* sources into your repository */
@@ -51,4 +55,8 @@ int rtkit_make_realtime(DBusConnection *system_bus, pid_t thread, int priority);
* on success.*/
int rtkit_make_high_priority(DBusConnection *system_bus, pid_t thread, int nice_level);
+#ifdef __cplusplus
+}
+#endif
+
#endif