Lines Matching defs:interface
277 static int bus_job_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
284 assert(interface);
335 static int bus_unit_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
340 assert(interface);
347 static int bus_unit_interface_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
354 assert(interface);
362 if (!streq_ptr(interface, unit_dbus_interface_from_type(u->type)))
369 static int bus_unit_cgroup_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
376 assert(interface);
384 if (!streq_ptr(interface, unit_dbus_interface_from_type(u->type)))
394 static int bus_cgroup_context_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
402 assert(interface);
410 if (!streq_ptr(interface, unit_dbus_interface_from_type(u->type)))
421 static int bus_exec_context_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
429 assert(interface);
437 if (!streq_ptr(interface, unit_dbus_interface_from_type(u->type)))
448 static int bus_kill_context_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error) {
456 assert(interface);
464 if (!streq_ptr(interface, unit_dbus_interface_from_type(u->type)))
561 const char *interface;
563 assert_se(interface = unit_dbus_interface_from_type(t));
565 r = sd_bus_add_fallback_vtable(bus, NULL, "/org/freedesktop/systemd1/unit", interface, unit_vtable[t]->bus_vtable, bus_unit_interface_find, m);
567 return log_error_errno(r, "Failed to register type specific vtable for %s: %m", interface);
570 r = sd_bus_add_fallback_vtable(bus, NULL, "/org/freedesktop/systemd1/unit", interface, bus_unit_cgroup_vtable, bus_unit_cgroup_find, m);
572 return log_error_errno(r, "Failed to register control group unit vtable for %s: %m", interface);
574 r = sd_bus_add_fallback_vtable(bus, NULL, "/org/freedesktop/systemd1/unit", interface, bus_cgroup_vtable, bus_cgroup_context_find, m);
576 return log_error_errno(r, "Failed to register control group vtable for %s: %m", interface);
580 r = sd_bus_add_fallback_vtable(bus, NULL, "/org/freedesktop/systemd1/unit", interface, bus_exec_vtable, bus_exec_context_find, m);
582 return log_error_errno(r, "Failed to register execute vtable for %s: %m", interface);
586 r = sd_bus_add_fallback_vtable(bus, NULL, "/org/freedesktop/systemd1/unit", interface, bus_kill_vtable, bus_kill_context_find, m);
588 return log_error_errno(r, "Failed to register kill vtable for %s: %m", interface);
607 "interface='org.freedesktop.DBus.Local',"
701 "interface='org.freedesktop.systemd1.Agent',"
836 "interface='org.freedesktop.systemd1.Activator',"
915 "interface='org.freedesktop.systemd1.Agent',"