diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-04-20 00:42:19 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-04-20 00:42:19 -0700 |
commit | 1934c9ea00cb4cb35a2561273c8df8339c8023a1 (patch) | |
tree | 1e74bb18dae18c1bc0ade18c0562847d4ac467d1 /sesman/config.h | |
parent | 03a5914609298515ea2855f1cf45f3ba7d8cf170 (diff) | |
download | xrdp-proprietary-1934c9ea00cb4cb35a2561273c8df8339c8023a1.tar.gz xrdp-proprietary-1934c9ea00cb4cb35a2561273c8df8339c8023a1.zip |
sesman: more options for session lookup from Fredy Paquet
Diffstat (limited to 'sesman/config.h')
-rw-r--r-- | sesman/config.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sesman/config.h b/sesman/config.h index a9679e9a..31ac7256 100644 --- a/sesman/config.h +++ b/sesman/config.h @@ -65,6 +65,29 @@ #define SESMAN_CFG_SESS_IDLE_LIMIT "IdleTimeLimit" #define SESMAN_CFG_SESS_DISC_LIMIT "DisconnectedTimeLimit" +#define SESMAN_CFG_SESS_POLICY_S "Policy" +#define SESMAN_CFG_SESS_POLICY_DFLT_S "Default" +#define SESMAN_CFG_SESS_POLICY_UBD_S "UBD" +#define SESMAN_CFG_SESS_POLICY_UBI_S "UBI" +#define SESMAN_CFG_SESS_POLICY_UBC_S "UBC" +#define SESMAN_CFG_SESS_POLICY_UBDI_S "UBDI" +#define SESMAN_CFG_SESS_POLICY_UBDC_S "UBDC" + +enum SESMAN_CFG_SESS_POLICY_BITS { + SESMAN_CFG_SESS_POLICY_D = 0x01, + SESMAN_CFG_SESS_POLICY_I = 0x02, + SESMAN_CFG_SESS_POLICY_C = 0x04 +}; + +enum SESMAN_CFG_SESS_POLICY { + SESMAN_CFG_SESS_POLICY_DFLT = 0, + SESMAN_CFG_SESS_POLICY_UBD = SESMAN_CFG_SESS_POLICY_D, + SESMAN_CFG_SESS_POLICY_UBI = SESMAN_CFG_SESS_POLICY_I, + SESMAN_CFG_SESS_POLICY_UBC = SESMAN_CFG_SESS_POLICY_C, + SESMAN_CFG_SESS_POLICY_UBDI = SESMAN_CFG_SESS_POLICY_D | SESMAN_CFG_SESS_POLICY_I, + SESMAN_CFG_SESS_POLICY_UBDC = SESMAN_CFG_SESS_POLICY_D | SESMAN_CFG_SESS_POLICY_C +}; + /** * * @struct config_security @@ -135,6 +158,11 @@ struct config_sessions * @brief enables automatic killing of disconnected session */ int kill_disconnected; + /** + * @var policy + * @brief session allocation policy + */ + enum SESMAN_CFG_SESS_POLICY policy; }; /** |