#include <assert.h>
#include <string.h>
-#include "logind-device.h"
#include "util.h"
+#include "logind-device.h"
Device* device_new(Manager *m, const char *sysfs, bool master) {
Device *d;
void device_detach(Device *d) {
Seat *s;
SessionDevice *sd;
+
assert(d);
if (!d->seat)
if (!seat_has_master_device(s)) {
seat_add_to_gc_queue(s);
- seat_send_changed(s, "CanGraphical\0");
+ seat_send_changed(s, "CanGraphical", NULL);
}
}
}
if (!had_master && d->master)
- seat_send_changed(s, "CanGraphical\0");
+ seat_send_changed(s, "CanGraphical", NULL);
}