Commit b29b8bc2 authored by Lennart Poettering's avatar Lennart Poettering

bus: add C++ wrappers to public header files

parent 166de425
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment