summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-bus.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.h
parent166de4255ca04814d703cdc4efa479fb6aa391dd (diff)
bus: add C++ wrappers to public header files
Diffstat (limited to 'src/libsystemd-bus/sd-bus.h')
-rw-r--r--src/libsystemd-bus/sd-bus.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-bus.h b/src/libsystemd-bus/sd-bus.h
index 08c5e54230..148a99c86f 100644
--- a/src/libsystemd-bus/sd-bus.h
+++ b/src/libsystemd-bus/sd-bus.h
@@ -28,16 +28,20 @@
#include <sd-id128.h>
#include "sd-bus-protocol.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* TODO:
* - server side
* - allow installing match callbacks
* - anonymous auth
- * - default policy
*
* Later:
* - add page donation logic
* - api for appending/reading fixed arrays
* - merge busctl into systemctl or so?
+ * - default policy (allow uid == 0 and our own uid)
*/
typedef struct sd_bus sd_bus;
@@ -165,4 +169,8 @@ int sd_bus_error_copy(sd_bus_error *dest, const sd_bus_error *e);
int sd_bus_error_is_set(const sd_bus_error *e);
int sd_bus_error_has_name(const sd_bus_error *e, const char *name);
+#ifdef __cplusplus
+}
+#endif
+
#endif