backend/session: share is_drm_card implementation

This commit is contained in:
illiliti 2022-03-14 00:09:37 +03:00
parent ab2425e65f
commit 1e7867610c
5 changed files with 25 additions and 29 deletions

View file

@ -1,3 +1,4 @@
#include <stdbool.h>
#include <sys/types.h>
#include <wlr/backend/session.h>
#include <wayland-server-core.h>
@ -10,4 +11,6 @@ void dev_finish(struct wlr_session *session);
ssize_t dev_find_gpus(struct wlr_session *session, size_t ret_len,
struct wlr_device **ret);
bool is_drm_card(const char *devname);
#endif