Skip to content

Commit

Permalink
Merge pull request #16 from cjp256/oxt-335
Browse files Browse the repository at this point in the history
xenmgr: add switcher-status-report-enabled property to configure
  • Loading branch information
jean-edouard committed Jul 23, 2015
2 parents 76ad710 + e8f6493 commit fdce31e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xenmgr/XenMgr/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module XenMgr.Config
, appGetSwitcherSelfSwitchEnabled, appSetSwitcherSelfSwitchEnabled
, appGetSwitcherKeyboardFollowsMouse, appSetSwitcherKeyboardFollowsMouse
, appGetSwitcherResistance, appSetSwitcherResistance
, appGetSwitcherStatusReportEnabled, appSetSwitcherStatusReportEnabled
, appGetDrmGraphics, appSetDrmGraphics
, appGetSupportedLanguages
, appGetLanguage, appSetLanguage
Expand Down Expand Up @@ -291,6 +292,10 @@ appGetSwitcherResistance = dbReadWithDefault 10 "/switcher/resistance"
appSetSwitcherResistance :: Int -> Rpc ()
appSetSwitcherResistance v = dbWrite "/switcher/resistance" v

appGetSwitcherStatusReportEnabled :: Rpc Bool
appGetSwitcherStatusReportEnabled = dbReadWithDefault True "/switcher/status-report-enabled"
appSetSwitcherStatusReportEnabled v = dbWrite "/switcher/status-report-enabled" v

appGetSupportedLanguages :: Rpc [String]
appGetSupportedLanguages = parse <$> liftM (M.lookup "supported-languages") (liftIO readCaps) where
parse Nothing = []
Expand Down
2 changes: 2 additions & 0 deletions xenmgr/XenMgr/Expose/XenmgrObject.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ implementation xm testingCtx =
, comCitrixXenclientXenmgrConfigUiSetSwitcherKeyboardFollowsMouse = appSetSwitcherKeyboardFollowsMouse
, comCitrixXenclientXenmgrConfigUiGetSwitcherResistance = fromIntegral <$> appGetSwitcherResistance
, comCitrixXenclientXenmgrConfigUiSetSwitcherResistance = appSetSwitcherResistance . fromIntegral
, comCitrixXenclientXenmgrConfigUiGetSwitcherStatusReportEnabled = appGetSwitcherStatusReportEnabled
, comCitrixXenclientXenmgrConfigUiSetSwitcherStatusReportEnabled = appSetSwitcherStatusReportEnabled

, comCitrixXenclientXenmgrConfigUiGetSupportedLanguages = appGetSupportedLanguages
, comCitrixXenclientXenmgrConfigUiGetLanguage = appGetLanguage
Expand Down

0 comments on commit fdce31e

Please sign in to comment.