From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Anshul Garg <aksgarg1989@gmail.com>
Cc: linux-input@vger.kernel.org,
"anshul.g@samsung.com" <anshul.g@samsung.com>
Subject: Re: [Question : drivers/input ] Fixing Event Filter Mechanism in input subsystem
Date: Fri, 26 Dec 2014 15:46:58 -0800 [thread overview]
Message-ID: <20141226234658.GC1071@dtor-ws> (raw)
In-Reply-To: <CA+HOOsg+U6yS4sAsgD_vZ-OGkTuzdKf2Qmg8hcyXkyFbY3WJPQ@mail.gmail.com>
Hi Anshul,
On Thu, Dec 25, 2014 at 11:11:06AM +0530, Anshul Garg wrote:
> Dear Mr Dmitry ,
>
> Thanks a lot for the clarification.
>
> I was in assumption that one handler can support both ->filter() and
> ->event[s]()
> Callback.So that's why i have prepared the patch to first do the
> filter then pass
> the events.
>
> Can you please tell me why current implementation doesn't expect handler can
> have both callbacks?
Because it was something I saw no need for: filter already has all the
events so it can process them. If you really want to process events
again once all filters have run, you can register additional handler.
>
> I think input core should be generic to allow any type of handlers which can
> support both filter and events callbacks.
>
> Please help to answer above query as my patch is based on this pre-assumption
> that one handler can support both callbacks .
>
> If we really need to have support of such handlers in input core then
> only my patch
> is good.
I think I would need a user for this feature before changing the code to
allow it.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2014-12-26 23:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 17:06 [Question : drivers/input ] Fixing Event Filter Mechanism in input subsystem Anshul Garg
2014-12-22 17:26 ` Dmitry Torokhov
2014-12-23 1:22 ` Anshul Garg
2014-12-23 14:34 ` Anshul Garg
2014-12-24 18:25 ` Dmitry Torokhov
2014-12-25 5:41 ` Anshul Garg
2014-12-26 23:46 ` Dmitry Torokhov [this message]
2014-12-29 15:04 ` Anshul Garg
-- strict thread matches above, loose matches on Subject: below --
2014-12-22 13:13 Anshul Garg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141226234658.GC1071@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=aksgarg1989@gmail.com \
--cc=anshul.g@samsung.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.