callback: remove feature checking 06/283506/1 accepted/tizen/7.0/unified/20221105.102659 accepted/tizen/7.0/unified/20221110.055933
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 13 Oct 2022 06:20:47 +0000 (15:20 +0900)
committeryoungjae cho <y0.cho@samsung.com>
Fri, 28 Oct 2022 00:55:17 +0000 (00:55 +0000)
Checking feature http://tizen.org/feature/display.state had been
added without ACR and it broke ABI compatibility.
  - callback: check feature before add/remove callback (f860d7)

To recover ABI compatability, do not check the feature.

Change-Id: I3721268455ac62b52054f873808c224a8efdf832
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit bec7d1282e87435d57033cb8933dd70cd2ee5064)

src/callback.c

index 2d596e4..9f448c4 100644 (file)
@@ -357,9 +357,6 @@ static int device_callback_check_feature_supported(int type)
                retval = system_info_get_platform_bool("http://tizen.org/feature/display", &supported);
                if (retval != SYSTEM_INFO_ERROR_NONE || !supported)
                        return -ENOTSUP;
-               retval = system_info_get_platform_bool("http://tizen.org/feature/display.state", &supported);
-               if (retval != SYSTEM_INFO_ERROR_NONE || !supported)
-                       return -ENOTSUP;
 
                f_display = true;
                return 0;