46
49
const char bus_automount_interface[] _introspect_("Automount") = BUS_AUTOMOUNT_INTERFACE;
51
const char bus_automount_invalidating_properties[] =
54
static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_automount_append_automount_result, automount_result, AutomountResult);
56
static const BusProperty bus_automount_properties[] = {
57
{ "Where", bus_property_append_string, "s", offsetof(Automount, where), true },
58
{ "DirectoryMode", bus_property_append_mode, "u", offsetof(Automount, directory_mode) },
59
{ "Result", bus_automount_append_automount_result, "s", offsetof(Automount, result) },
48
63
DBusHandlerResult bus_automount_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
49
const BusProperty properties[] = {
51
{ "org.freedesktop.systemd1.Automount", "Where", bus_property_append_string, "s", u->automount.where },
52
{ "org.freedesktop.systemd1.Automount", "DirectoryMode", bus_property_append_mode, "u", &u->automount.directory_mode },
53
{ NULL, NULL, NULL, NULL, NULL }
64
Automount *am = AUTOMOUNT(u);
65
const BusBoundProperties bps[] = {
66
{ "org.freedesktop.systemd1.Unit", bus_unit_properties, u },
67
{ "org.freedesktop.systemd1.Automount", bus_automount_properties, am },
56
return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, properties);
71
return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps);