summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-16 17:06:57 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-16 17:06:57 +0200
commit108e5bbae0c1bb41b88434e74d039b6df50fed0e (patch)
tree5c19814aea84bd2e602b826fb65903b93e88bbf3
parentdb2d157f0d8922e88689631b9de26aea30229182 (diff)
add C++ wrappers
-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