From 883650700fcd9e0bb90de5c307e7e4e845725312 Mon Sep 17 00:00:00 2001 From: Laxmikant Rashinkar Date: Sat, 8 Mar 2014 16:41:37 -0800 Subject: added support for using Xorg driver model --- sesman/libscp/libscp_session.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sesman/libscp/libscp_session.c') diff --git a/sesman/libscp/libscp_session.c b/sesman/libscp/libscp_session.c index 4c389655..8f5841a5 100644 --- a/sesman/libscp/libscp_session.c +++ b/sesman/libscp/libscp_session.c @@ -58,12 +58,19 @@ scp_session_set_type(struct SCP_SESSION *s, tui8 type) case SCP_SESSION_TYPE_XVNC: s->type = SCP_SESSION_TYPE_XVNC; break; + case SCP_SESSION_TYPE_XRDP: s->type = SCP_SESSION_TYPE_XRDP; break; + + case SCP_SESSION_TYPE_XORG: + s->type = SCP_SESSION_TYPE_XORG; + break; + case SCP_GW_AUTHENTICATION: s->type = SCP_GW_AUTHENTICATION; break; + case SCP_SESSION_TYPE_MANAGE: s->type = SCP_SESSION_TYPE_MANAGE; s->mng = (struct SCP_MNG_DATA *)g_malloc(sizeof(struct SCP_MNG_DATA), 1); @@ -75,6 +82,7 @@ scp_session_set_type(struct SCP_SESSION *s, tui8 type) } break; + default: log_message(LOG_LEVEL_WARNING, "[session:%d] set_type: unknown type", __LINE__); return 1; -- cgit v1.2.1 From 49fcc23673323a850b7aaf9ae1025cfd14d0adba Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Fri, 9 May 2014 16:02:19 -0700 Subject: sesman: added SessionVariables to sesman.ini and some indent cleanup --- sesman/libscp/libscp_session.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sesman/libscp/libscp_session.c') diff --git a/sesman/libscp/libscp_session.c b/sesman/libscp/libscp_session.c index 8f5841a5..d25fc64a 100644 --- a/sesman/libscp/libscp_session.c +++ b/sesman/libscp/libscp_session.c @@ -58,19 +58,19 @@ scp_session_set_type(struct SCP_SESSION *s, tui8 type) case SCP_SESSION_TYPE_XVNC: s->type = SCP_SESSION_TYPE_XVNC; break; - + case SCP_SESSION_TYPE_XRDP: s->type = SCP_SESSION_TYPE_XRDP; break; - + case SCP_SESSION_TYPE_XORG: - s->type = SCP_SESSION_TYPE_XORG; - break; - + s->type = SCP_SESSION_TYPE_XORG; + break; + case SCP_GW_AUTHENTICATION: s->type = SCP_GW_AUTHENTICATION; break; - + case SCP_SESSION_TYPE_MANAGE: s->type = SCP_SESSION_TYPE_MANAGE; s->mng = (struct SCP_MNG_DATA *)g_malloc(sizeof(struct SCP_MNG_DATA), 1); @@ -82,7 +82,7 @@ scp_session_set_type(struct SCP_SESSION *s, tui8 type) } break; - + default: log_message(LOG_LEVEL_WARNING, "[session:%d] set_type: unknown type", __LINE__); return 1; -- cgit v1.2.1