X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fdbus-common.h;h=005a715d0aa6ae4dc59184d9a987c327b901eac4;hb=0c0271841ab45595f71528c50bcf1904d4b841d5;hp=e49c3b5258816dcd05f0da3b26cf354cf3ad9a9e;hpb=9ed63f16131637fc0e76bd40b5452cfc45bccfc7;p=elogind.git diff --git a/src/shared/dbus-common.h b/src/shared/dbus-common.h index e49c3b525..005a715d0 100644 --- a/src/shared/dbus-common.h +++ b/src/shared/dbus-common.h @@ -22,6 +22,7 @@ ***/ #include +#include #ifndef DBUS_ERROR_UNKNOWN_OBJECT #define DBUS_ERROR_UNKNOWN_OBJECT "org.freedesktop.DBus.Error.UnknownObject" @@ -213,3 +214,9 @@ int bus_method_call_with_reply(DBusConnection *bus, DBusMessage **return_reply, DBusError *return_error, int first_arg_type, ...); + +const char *bus_message_get_sender_with_fallback(DBusMessage *m); + +void bus_message_unrefp(DBusMessage **reply); + +#define _cleanup_dbus_message_unref_ __attribute__((cleanup(bus_message_unrefp)))