summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/grdev-internal.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 09:50:10 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 11:46:49 +0200
commit6221d249d1f03d235a23a284c597c86676b32d2f (patch)
tree3582aa87859ab5e03edecd354233ba1bfa674769 /src/libsystemd-terminal/grdev-internal.h
parenta3eabec96b872bbf581c9bfa81ecc9c2819b8de8 (diff)
terminal: grdev: refresh device state on hotplug events
Whenever we get udev hotplug events, re-read the device state so we properly detect any changed in the display setups.
Diffstat (limited to 'src/libsystemd-terminal/grdev-internal.h')
-rw-r--r--src/libsystemd-terminal/grdev-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/grdev-internal.h b/src/libsystemd-terminal/grdev-internal.h
index 0064f0be02..96830a714c 100644
--- a/src/libsystemd-terminal/grdev-internal.h
+++ b/src/libsystemd-terminal/grdev-internal.h
@@ -47,6 +47,7 @@ typedef struct grdev_card grdev_card;
bool grdev_is_drm_card(grdev_card *card);
grdev_card *grdev_find_drm_card(grdev_session *session, dev_t devnum);
int grdev_drm_card_new(grdev_card **out, grdev_session *session, struct udev_device *ud);
+void grdev_drm_card_hotplug(grdev_card *card, struct udev_device *ud);
/*
* Displays