bug fix: It will end, if many events come from Weston continuously. 55/18555/1 accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_ivi_panda tizen_ivi_release accepted/tizen/ivi/panda/20140326.234224 accepted/tizen/ivi/panda/20140403.020032 accepted/tizen/ivi/release/20140331.231912 submit/tizen/20140326.053950 submit/tizen_ivi_panda/20140403.012143 submit/tizen_ivi_release/20140331.211935
authorMasayuki Sasaki <masayuki.sasaki@mail.toyota-td.jp>
Wed, 26 Mar 2014 05:09:57 +0000 (14:09 +0900)
committerMasayuki Sasaki <masayuki.sasaki@mail.toyota-td.jp>
Wed, 26 Mar 2014 05:12:19 +0000 (14:12 +0900)
Change-Id: I28f1cb5cdd4e674798170c1e00e82ecf1ac288cb
Signed-off-by: Masayuki Sasaki <masayuki.sasaki@mail.toyota-td.jp>
gtforce/Makefile.am
gtforce/ico_dic-gtforce.c
gtforce/ico_dic-wayland.c
packaging/ico-uxf-device-input-controller.changes
packaging/ico-uxf-device-input-controller.spec

index eb093f9..3136894 100644 (file)
@@ -4,7 +4,7 @@ wayland_client_lib = -lwayland-client
 wayland_ivi_client_lib = -lico-uxf-weston-plugin
 wayland_ivi_client_inc = -I/usr/include/ico-uxf-weston-plugin
 
-AM_CFLAGS = $(GCC_CFLAGS) -I/usr/include/ico-util
+AM_CFLAGS = $(GCC_CFLAGS) -D_XOPEN_SOURCE -D_BSD_SOURCE -I/usr/include/ico-util
 AM_CPPFLAGS = -I$(top_srcdir)/src $(wayland_ivi_client_inc) $(GLIB_CFLAGS) $(COMPOSITOR_CFLAGS)
 
 bin_PROGRAMS =         \
index fc26062..35e819c 100644 (file)
 #include    <linux/joystick.h>
 #include    <glib.h>
 
-#ifndef __USE_XOPEN
-extern char *cuserid (char *__s);
-#endif
-
 #include    "ico_dic-gtforce.h"
 
 /* type definition                                                                  */
index dbf9480..d6fa2f4 100644 (file)
@@ -162,7 +162,7 @@ ico_dic_wayland_iterate(struct epoll_event *ev_ret, int timeout)
 {
     int nfds;
     int ii;
-    static int  errcount = 0;
+    static uint32_t repert = 0;
 
     memset(ev_ret, 0, sizeof(struct epoll_event) * ICO_DIC_EVENT_NUM);
     wl_display_flush(gIco_Dic_Mng.Wayland_Display);
@@ -173,20 +173,16 @@ ico_dic_wayland_iterate(struct epoll_event *ev_ret, int timeout)
             for (ii = 0; ii < nfds; ii++) {
                 if (ev_ret[ii].data.fd == gIco_Dic_Mng.WaylandFd) {
                     wl_display_dispatch(gIco_Dic_Mng.Wayland_Display);
-                    ICO_DBG("ico_dic_wayland_iterate: Event wayland fd");
-                    errcount ++;
-                    if (errcount > 50)  {
-                        ICO_ERR("ico_dic_wayland_iterate: Error wayland disconnect");
-                        ICO_INF("END_MODULE GtForce device input controller"
-                                "(Error: wayland disconnect)");
-                        exit(9);
-                    }
-                    if ((errcount % 5) == 0)    {
-                        usleep(50*1000);
+                    repert ++;
+                    if ((repert % 5) == 0)  {
+                        if (repert % 100)   {
+                            ICO_DBG("ico_dic_wayland_iterate: Event wayland fd");
+                        }
+                        usleep(20*1000);
                     }
                 }
                 else    {
-                    errcount = 0;
+                    repert = 0;
                 }
             }
             return nfds;
index 37a3aeb..e293731 100644 (file)
@@ -1,3 +1,8 @@
+* Wed Mar 26 2014 Shibata Makoto <shibata@mac.tec.toyota.co.jp> accepted/tizen/ivi/release/20140312.124735@9827dd3
+- Delete test_send_event tool (It is contained in weston-plugin by the name of ico_send_inputevent).
+- Correction of the review indication from a Tizen team.
+- bug fix: It will end, if many events come from Weston continuously.
+
 * Fri Feb 28 2014 Shibata Makoto <shibata@mac.tec.toyota.co.jp> accepted/tizen/ivi/20140129.180655@86233eb
 - 0.9.06 release
 -- It changes so that the layer controlling function of GENIVI may be used for surface management and layer management.
index 82afb81..3b1da04 100644 (file)
@@ -3,7 +3,7 @@ Summary:    Device Input Controller
 Version:    0.9.06
 Release:    1.1
 Group:      System/GUI
-License:    Apache-2.0
+License:    Apache License, Version 2.0
 URL:        ""
 Source0:    %{name}-%{version}.tar.bz2