chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man: document systemd-journalctl(1)
[elogind.git]
/
src
/
dbus-target.c
diff --git
a/src/dbus-target.c
b/src/dbus-target.c
index 03e8fc8bd0a6b4fab8d3a0b868d9fc18d0f01bc7..55cf862de068d9caf65eb648c0adf315d74cef7d 100644
(file)
--- a/
src/dbus-target.c
+++ b/
src/dbus-target.c
@@
-23,6
+23,7
@@
#include "dbus-unit.h"
#include "dbus-target.h"
#include "dbus-unit.h"
#include "dbus-target.h"
+#include "dbus-common.h"
#define BUS_TARGET_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Target\">\n" \
#define BUS_TARGET_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Target\">\n" \
@@
-34,16
+35,21
@@
BUS_UNIT_INTERFACE \
BUS_TARGET_INTERFACE \
BUS_PROPERTIES_INTERFACE \
BUS_UNIT_INTERFACE \
BUS_TARGET_INTERFACE \
BUS_PROPERTIES_INTERFACE \
+ BUS_PEER_INTERFACE \
BUS_INTROSPECTABLE_INTERFACE \
"</node>\n"
BUS_INTROSPECTABLE_INTERFACE \
"</node>\n"
-const char bus_target_interface[] = BUS_TARGET_INTERFACE;
+#define INTERFACES_LIST \
+ BUS_UNIT_INTERFACES_LIST \
+ "org.freedesktop.systemd1.Target\0"
+
+const char bus_target_interface[] _introspect_("Target") = BUS_TARGET_INTERFACE;
DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
- const Bus
Property propertie
s[] = {
-
BUS_UNIT_PROPERTIES
,
- { NULL,
NULL, NULL, NULL, NULL
}
+ const Bus
BoundProperties bp
s[] = {
+
{ "org.freedesktop.systemd1.Unit", bus_unit_properties, u }
,
+ { NULL, }
};
};
- return bus_default_message_handler(
u->meta.manager, c, message, INTROSPECTION, propertie
s);
+ return bus_default_message_handler(
c, message, INTROSPECTION, INTERFACES_LIST, bp
s);
}
}