From: kubistika Date: Sat, 3 Aug 2019 13:45:24 +0000 (+0300) Subject: server: proxy: filters: demo: log instead of dropping the connection X-Git-Tag: 2.0.0~395^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b6864a273789bce402d1f27e5c708696fe7ec4e;p=platform%2Fupstream%2Ffreerdp.git server: proxy: filters: demo: log instead of dropping the connection --- diff --git a/server/proxy/filters/filter_demo.c b/server/proxy/filters/filter_demo.c index 55255f2..e2018ad 100644 --- a/server/proxy/filters/filter_demo.c +++ b/server/proxy/filters/filter_demo.c @@ -17,6 +17,8 @@ * limitations under the License. */ +#include + #include "filters_api.h" static PF_FILTER_RESULT demo_filter_keyboard_event(connectionInfo* info, void* param) @@ -33,7 +35,8 @@ static PF_FILTER_RESULT demo_filter_mouse_event(connectionInfo* info, void* para if (event_data->x % 100 == 0) { - return FILTER_DROP; + printf("filter_demo: mouse x is currently %"PRIu16"\n", event_data->x); + return FILTER_PASS; } return FILTER_PASS;