Lines Matching refs:bus_open
71 static sd_bus **bus_choose_default(int (**bus_open)(sd_bus **)) { in bus_choose_default()
83 if (bus_open) in bus_choose_default()
84 *bus_open = sd_bus_open_system; in bus_choose_default()
87 if (bus_open) in bus_choose_default()
88 *bus_open = sd_bus_open_user; in bus_choose_default()
97 if (bus_open) in bus_choose_default()
98 *bus_open = sd_bus_open; in bus_choose_default()
106 if (bus_open) in bus_choose_default()
107 *bus_open = sd_bus_open_user; in bus_choose_default()
110 if (bus_open) in bus_choose_default()
111 *bus_open = sd_bus_open_system; in bus_choose_default()
3883 static int bus_default(int (*bus_open)(sd_bus **), sd_bus **default_bus, sd_bus **ret) { in bus_default()
3887 assert(bus_open); in bus_default()
3898 r = bus_open(&b); in bus_default()
3919 int (*bus_open)(sd_bus **) = NULL; in sd_bus_default() local
3922 busp = bus_choose_default(&bus_open); in sd_bus_default()
3923 return bus_default(bus_open, busp, ret); in sd_bus_default()