From 0dabfdc43264b8a63b7402ded393b717643fe136 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 10 Jul 2022 00:00:58 -0400 Subject: [PATCH] [client] displayservers: add name field --- client/displayservers/Wayland/wayland.c | 1 + client/displayservers/X11/x11.c | 1 + client/include/interface/displayserver.h | 2 ++ 3 files changed, 4 insertions(+) diff --git a/client/displayservers/Wayland/wayland.c b/client/displayservers/Wayland/wayland.c index aa6346c0..91eeb08d 100644 --- a/client/displayservers/Wayland/wayland.c +++ b/client/displayservers/Wayland/wayland.c @@ -154,6 +154,7 @@ static bool waylandGetProp(LG_DSProperty prop, void * ret) struct LG_DisplayServerOps LGDS_Wayland = { + .name = "Wayland", .setup = waylandSetup, .probe = waylandProbe, .earlyInit = waylandEarlyInit, diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index cfc15c79..40f92c02 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -1922,6 +1922,7 @@ static void x11Minimize(void) struct LG_DisplayServerOps LGDS_X11 = { + .name = "X11", .setup = x11Setup, .probe = x11Probe, .earlyInit = x11EarlyInit, diff --git a/client/include/interface/displayserver.h b/client/include/interface/displayserver.h index a7741238..f63089d5 100644 --- a/client/include/interface/displayserver.h +++ b/client/include/interface/displayserver.h @@ -110,6 +110,8 @@ typedef struct LGEvent LGEvent; struct LG_DisplayServerOps { + const char * name; + /* called before options are parsed, useful for registering options */ void (*setup)(void);