summaryrefslogtreecommitdiff
path: root/include/dm.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2016-11-06 09:17:48 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:35 +0200
commit52d8432acbf74bb9353daa68b2e6ba33398cf14c (patch)
treee21767bf86de6e9edf17005dd4ec81401a25c8de /include/dm.h
parenta18fe6d27c42a0edd96f0c93cfdff913549d1e36 (diff)
Remove the displayType member of struct display.
xenodm only manages Local Permanent FromFile X servers. No need to keep the checks for that. For now the Xservers file keeps the location field, but ignores its
Diffstat (limited to 'include/dm.h')
-rw-r--r--include/dm.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/include/dm.h b/include/dm.h
index 85ae15b..45d7c0b 100644
--- a/include/dm.h
+++ b/include/dm.h
@@ -54,7 +54,6 @@ from The Open Group.
# include <time.h>
# define Time_t time_t
-
# include <X11/Xdmcp.h>
@@ -80,33 +79,6 @@ typedef int waitType;
typedef enum displayStatus { running, notRunning, zombie, phoenix } DisplayStatus;
-
-/*
- * local - server runs on local host
- * foreign - server runs on remote host -- unsupported in xenodm
- * permanent - session restarted when it exits
- * transient - session not restarted when it exits
- * fromFile - started via entry in servers file
- * fromXDMCP - started with XDMCP
- */
-
-typedef struct displayType {
- unsigned int location:1;
- unsigned int lifetime:1;
- unsigned int origin:1;
-} DisplayType;
-
-# define Local 1
-# define Foreign 0
-
-# define Permanent 1
-# define Transient 0
-
-# define FromFile 1
-# define FromXDMCP 0 /* unsupported in xenodm */
-
-extern DisplayType parseDisplayType (char *string, int *usedDefault);
-
typedef enum fileState { NewEntry, OldEntry, MissingEntry } FileState;
struct display {
@@ -114,7 +86,6 @@ struct display {
/* Xservers file / XDMCP information */
char *name; /* DISPLAY name */
char *class; /* display class (may be NULL) */
- DisplayType displayType; /* method to handle with */
char **argv; /* program name and arguments */
/* display state */
@@ -274,7 +245,7 @@ extern void ForEachDisplay (void (*f)(struct display *));
extern void RemoveDisplay (struct display *old);
/* in file.c */
-extern void ParseDisplay (char *source, DisplayType *acceptableTypes, int numAcceptable);
+extern void ParseDisplay (char *source);
/* in netaddr.c */
extern char *NetaddrAddress(XdmcpNetaddr netaddrp, int *lenp);