From e659552d9b4c3889522d018e76c00adbe507d045 Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Sun, 10 Oct 2010 01:42:18 +0200 Subject: Add some comments to inputEventHandler.h --- src/input/inputEventHandler.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/input/inputEventHandler.h b/src/input/inputEventHandler.h index 46e688c..3879b80 100644 --- a/src/input/inputEventHandler.h +++ b/src/input/inputEventHandler.h @@ -26,6 +26,11 @@ #include "detail/policyChain.h" #include "detail/systemTraits.h" +///////////////////////////////////////////////////////////////////////// +// InputEventContext: +// For handling access control, this specifies who sent the input event. +// This only makes sense in the privileged input handler chain. +///////////////////////////////////////////////////////////////////////// struct InputEventContext { InputEventContext() @@ -37,6 +42,7 @@ struct InputEventContext virtual uid_t senderUid() const = 0; virtual gid_t senderGid() const = 0; + // Support the generation of meaningful log messages: mutable bool hasBeenDenied; }; @@ -203,6 +209,7 @@ template class InputEventHandler : public InputEventHandlerBase { protected: + // instantiate our policy: typedef USE_POLICY(input_policy::detail::InputEventHandlerPolicyBase) policy_type; policy_type policy; -- cgit v1.2.3-55-g7522