summaryrefslogtreecommitdiffstats
path: root/sesman/session.h
diff options
context:
space:
mode:
authorilsimo <ilsimo>2008-09-11 20:23:15 +0000
committerilsimo <ilsimo>2008-09-11 20:23:15 +0000
commit7c7929861246310d48789748cc150c9a4a492e09 (patch)
tree6b71e5c47fdc95451df2c7d23437ca4adfd227f6 /sesman/session.h
parent1e33ad14c3c2e82b9ba74a5f8d1210b5ae643054 (diff)
downloadxrdp-proprietary-7c7929861246310d48789748cc150c9a4a492e09.tar.gz
xrdp-proprietary-7c7929861246310d48789748cc150c9a4a492e09.zip
added first management code
added a rough management tool fixes in session.c
Diffstat (limited to 'sesman/session.h')
-rw-r--r--sesman/session.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sesman/session.h b/sesman/session.h
index e6c6563b..41acea2a 100644
--- a/sesman/session.h
+++ b/sesman/session.h
@@ -34,12 +34,13 @@
#define SESMAN_SESSION_TYPE_XRDP 1
#define SESMAN_SESSION_TYPE_XVNC 2
-#define SESMAN_SESSION_STATUS_ACTIVE 1
-#define SESMAN_SESSION_STATUS_IDLE 2
-#define SESMAN_SESSION_STATUS_DISCONNECTED 3
+#define SESMAN_SESSION_STATUS_ACTIVE 0x01
+#define SESMAN_SESSION_STATUS_IDLE 0x02
+#define SESMAN_SESSION_STATUS_DISCONNECTED 0x04
/* future expansion
-#define SESMAN_SESSION_STATUS_REMCONTROL 4
+#define SESMAN_SESSION_STATUS_REMCONTROL 0x08
*/
+#define SESMAN_SESSION_STATUS_ALL 0xFF
#define SESMAN_SESSION_KILL_OK 0
#define SESMAN_SESSION_KILL_NULLITEM 1
@@ -141,7 +142,7 @@ session_get_bypid(int pid);
*
*/
struct SCP_DISCONNECTED_SESSION*
-session_get_byuser(char* user, int* cnt);
+session_get_byuser(char* user, int* cnt, unsigned char flags);
#endif