X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-bus.h;h=85deacf63f4a8485aa47382b23019598e2380826;hb=eb01ba5de14859d7a94835ab9299de40132d549a;hp=28c85369926b5608816f51558fa20998937d3bac;hpb=f8e013f8bf476e6d61fb2e218c85e23032a46302;p=elogind.git diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 28c853699..85deacf63 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -27,6 +27,7 @@ #include #include "sd-bus-protocol.h" +#include "sd-memfd.h" #ifdef __cplusplus extern "C" { @@ -40,13 +41,6 @@ extern "C" { # endif #endif -/* TODO: - * - merge busctl into systemctl or so? - * - default policy (allow uid == 0 and our own uid) - * - enforce alignment of pointers passed in - * - negotiation for attach attributes - */ - typedef struct sd_bus sd_bus; typedef struct sd_bus_message sd_bus_message; @@ -56,7 +50,7 @@ typedef struct { int need_free; } sd_bus_error; -typedef int (*sd_bus_message_handler_t)(sd_bus *bus, int ret, sd_bus_message *m, void *userdata); +typedef int (*sd_bus_message_handler_t)(sd_bus *bus, sd_bus_message *m, void *userdata); /* Connections */ @@ -160,7 +154,9 @@ int sd_bus_message_append(sd_bus_message *m, const char *types, ...); int sd_bus_message_append_basic(sd_bus_message *m, char type, const void *p); int sd_bus_message_append_array(sd_bus_message *m, char type, const void *ptr, size_t size); int sd_bus_message_append_array_space(sd_bus_message *m, char type, size_t size, void **ptr); +int sd_bus_message_append_array_memfd(sd_bus_message *m, char type, sd_memfd *memfd); int sd_bus_message_append_string_space(sd_bus_message *m, size_t size, char **s); +int sd_bus_message_append_string_memfd(sd_bus_message *m, sd_memfd* memfd); int sd_bus_message_open_container(sd_bus_message *m, char type, const char *contents); int sd_bus_message_close_container(sd_bus_message *m);