[client] displayservers: add name field

This commit is contained in:
Quantum 2022-07-10 00:00:58 -04:00 committed by Geoffrey McRae
parent 97c5b8c3a7
commit 0dabfdc432
3 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -1922,6 +1922,7 @@ static void x11Minimize(void)
struct LG_DisplayServerOps LGDS_X11 =
{
.name = "X11",
.setup = x11Setup,
.probe = x11Probe,
.earlyInit = x11EarlyInit,

View File

@ -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);