diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-05-01 15:33:42 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-05-01 15:33:42 +1200 |
commit | 95a553dc51029406f9b52227e88ebd9f67b203a5 (patch) | |
tree | f39ddd4fa44d2e76fd4ea931a67a4fb8f340f98f /include/backend/drm/session.h | |
parent | aca13320b3e6df8cb575f64db736dc38b8b30ed2 (diff) |
Moved headers to the correct place.
Diffstat (limited to 'include/backend/drm/session.h')
-rw-r--r-- | include/backend/drm/session.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/backend/drm/session.h b/include/backend/drm/session.h new file mode 100644 index 00000000..c21900e9 --- /dev/null +++ b/include/backend/drm/session.h @@ -0,0 +1,25 @@ +#ifndef SESSION_H +#define SESSION_H + +#include <systemd/sd-bus.h> +#include <stdbool.h> + +struct otd_session { + char *id; + char *path; + char *seat; + + sd_bus *bus; +}; + +struct otd; +bool otd_new_session(struct otd *otd); +void otd_close_session(struct otd *otd); + +int take_device(struct otd *restrict otd, + const char *restrict path, + bool *restrict paused_out); + +void release_device(struct otd *otd, int fd); + +#endif |