summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-08-27 15:15:19 +1000
committerDave Airlie <airlied@redhat.com>2012-09-04 16:15:52 +1000
commitec740cffeba59216f4293fba829097654cde3b11 (patch)
tree195d1481809a248b5c8a3612b198f8fd7b0ced54 /include
parent49ec57d5094be0dd2b67435ac7bb04ead780f36d (diff)
config/udev: add wrapper around check if server is not seat 0
this is a simple clean-up that is useful to stop further propogation of this construct. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hotplug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hotplug.h b/include/hotplug.h
index 96b078d48..2a95b4524 100644
--- a/include/hotplug.h
+++ b/include/hotplug.h
@@ -69,4 +69,6 @@ void config_odev_probe(config_odev_probe_proc_ptr probe_callback);
void NewGPUDeviceRequest(struct OdevAttributes *attribs);
void DeleteGPUDeviceRequest(struct OdevAttributes *attribs);
#endif
+
+#define ServerIsNotSeat0() (SeatId && strcmp(SeatId, "seat0"))
#endif /* HOTPLUG_H */