summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-bus-protocol.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-29 23:20:32 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-30 15:21:54 +0100
commitb29b8bc202979eed83846f55c6de34f7461ed15d (patch)
tree6b26888782cba774c2d25b105fc83c4633d012c2 /src/libsystemd-bus/sd-bus-protocol.h
parent166de4255ca04814d703cdc4efa479fb6aa391dd (diff)
bus: add C++ wrappers to public header files
Diffstat (limited to 'src/libsystemd-bus/sd-bus-protocol.h')
-rw-r--r--src/libsystemd-bus/sd-bus-protocol.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsystemd-bus/sd-bus-protocol.h b/src/libsystemd-bus/sd-bus-protocol.h
index ac4d0b1dc5..7922f6b702 100644
--- a/src/libsystemd-bus/sd-bus-protocol.h
+++ b/src/libsystemd-bus/sd-bus-protocol.h
@@ -24,6 +24,10 @@
#include <endian.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Types of message */
enum {
@@ -142,4 +146,8 @@ enum {
" </method>\n" \
"</interface>\n"
+#ifdef __cplusplus
+}
+#endif
+
#endif