ecore_input: Remove warning message
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 7 Mar 2017 07:59:43 +0000 (16:59 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Mon, 18 Dec 2017 22:20:40 +0000 (07:20 +0900)
ecore_input_joystick_init/shutdown are deprecated, and these are internal functions.
The deprecated declaration makes warning message because ecore_event_init/shutdown uses those internally.

@tizen_fix

Change-Id: Ie904bdd72d75627a99aceb6d43d26ed55834847b

src/lib/ecore_input/Ecore_Input.h
src/lib/ecore_input/ecore_input.c

index 6853e76..8cf5254 100644 (file)
@@ -458,6 +458,39 @@ extern "C" {
     */
    EAPI Ecore_Compose_State  ecore_compose_get(const Eina_List *seq, char **seqstr_ret);
 
+   //TIZEN_ONLY(20170307) Deprecate ecore_input_joystick_init/shutdown API
+   /**
+    * Initializes the Ecore Input Joystick system.
+    *
+    * @return How many times the lib has been initialized.
+    *
+    * @since 1.15
+    *
+    * @if MOBILE @since_tizen 2.4
+    * @elseif WEARABLE @since_tizen 3.0
+    * @endif
+    *
+    * @deprecated Deprecated since Tizen 4.0
+    * ecore_event_init calls this by default
+    */
+   EINA_DEPRECATED EAPI int                  ecore_input_joystick_init(void);
+   /**
+    * Shutdowns the Ecore Input Joystick system.
+    *
+    * @return How many times the lib has been initialized.
+    *
+    * @since 1.15
+    *
+    * @if MOBILE @since_tizen 2.4
+    * @elseif WEARABLE @since_tizen 3.0
+    * @endif
+    *
+    * @deprecated Deprecated since Tizen 4.0
+    * ecore_event_shutdown calls this by default
+    */
+    EINA_DEPRECATED EAPI int                  ecore_input_joystick_shutdown(void);
+   //
+
    /**
     * Set deadzone of joystick event for an axis.
     *
index 2954bcd..7d6b1f3 100644 (file)
@@ -59,7 +59,11 @@ ecore_event_init(void)
    ECORE_EVENT_MOUSE_BUTTON_CANCEL = ecore_event_type_new();
    ECORE_EVENT_JOYSTICK = ecore_event_type_new();
 
+   //TIZEN_ONLY(20170307) Remove warning message
+   #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    ecore_input_joystick_init();
+   #pragma GCC diagnostic pop
+   //
 
    return _ecore_event_init_count;
 }
@@ -81,7 +85,11 @@ ecore_event_shutdown(void)
                           ECORE_EVENT_AXIS_UPDATE,
                           ECORE_EVENT_MOUSE_BUTTON_CANCEL,
                           ECORE_EVENT_JOYSTICK);
+   //TIZEN_ONLY(20170307) Remove warning message
+   #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    ecore_input_joystick_shutdown();
+   #pragma GCC diagnostic pop
+   //
    eina_log_domain_unregister(_ecore_input_log_dom);
    _ecore_input_log_dom = -1;
    ecore_shutdown();