static void detach_io_events(sd_bus *b);
static thread_local sd_bus *default_system_bus = NULL;
-static thread_local sd_bus *default_user_bus = NULL;
+// UNNEEDED static thread_local sd_bus *default_user_bus = NULL;
static thread_local sd_bus *default_starter_bus = NULL;
static void bus_close_fds(sd_bus *b) {
return 0;
}
-#endif // 0
_public_ int sd_bus_negotiate_creds(sd_bus *bus, int b, uint64_t mask) {
uint64_t new_flags;
return 0;
}
-/// UNNEEDED by elogind
-#if 0
_public_ int sd_bus_set_anonymous(sd_bus *bus, int b) {
assert_return(bus, -EINVAL);
assert_return(bus->state == BUS_UNSET, -EPERM);
return bus_send_internal(bus, m, cookie, false);
}
+/// UNNEEDED by elogind
+#if 0
_public_ int sd_bus_send_to(sd_bus *bus, sd_bus_message *m, const char *destination, uint64_t *cookie) {
int r;
return sd_bus_send(bus, m, cookie);
}
+#endif // 0
static usec_t calc_elapse(uint64_t usec) {
if (usec == (uint64_t) -1)
return sd_bus_error_set_errno(error, r);
}
+/// UNNEEDED by elogind
+#if 0
_public_ int sd_bus_get_fd(sd_bus *bus) {
assert_return(bus, -EINVAL);
return bus->input_fd;
}
+#endif // 0
_public_ int sd_bus_get_events(sd_bus *bus) {
int flags = 0;
}
}
+/// UNNEEDED by elogind
+#if 0
_public_ int sd_bus_add_filter(
sd_bus *bus,
sd_bus_slot **slot,
return 0;
}
+#endif // 0
_public_ int sd_bus_add_match(
sd_bus *bus,
labels = NULL;
return 1;
}
-#endif // 0
_public_ int sd_bus_try_close(sd_bus *bus) {
int r;
return 0;
}
-/// UNNEEDED by elogind
-#if 0
_public_ int sd_bus_get_description(sd_bus *bus, const char **description) {
assert_return(bus, -EINVAL);
assert_return(description, -EINVAL);
return !!(bus->hello_flags & KDBUS_HELLO_MONITOR);
}
-#endif // 0
static void flush_close(sd_bus *bus) {
if (!bus)
flush_close(default_user_bus);
flush_close(default_system_bus);
}
+#endif // 0