server: proxy: filters: demo: log instead of dropping the connection
authorkubistika <kmizrachi18@gmail.com>
Sat, 3 Aug 2019 13:45:24 +0000 (16:45 +0300)
committerkubistika <kmizrachi18@gmail.com>
Mon, 5 Aug 2019 08:01:31 +0000 (11:01 +0300)
server/proxy/filters/filter_demo.c

index 55255f2..e2018ad 100644 (file)
@@ -17,6 +17,8 @@
  * limitations under the License.
  */
 
+#include <stdio.h>
+
 #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;