display: Remove display-plugin 26/313326/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 19 Jun 2024 04:14:15 +0000 (13:14 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 24 Jun 2024 02:05:29 +0000 (11:05 +0900)
The display plugin has been replaced with the libsyscommon plugin api
for the several previous patches. And finally, it is now totally
replaced so remove the empty display-plugin from the deviced core.

Change-Id: Ia3e78a7ac8a9aeda637efd7aaa556560da018493
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
37 files changed:
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/tv/display/key-filter.c
plugins/wearable/display/auto-brightness-sensorhub.c
plugins/wearable/display/bezel.c
plugins/wearable/display/core.c
plugins/wearable/display/key-filter.c
plugins/wearable/display/swim.c
src/battery/battery-time.c
src/battery/lowbat-handler.c
src/display/device-interface.h
src/display/display-backlight.c
src/display/display-dbus.c
src/display/display-dpms.c
src/display/display-lock.c
src/display/display-misc.c
src/display/display-ops.h
src/display/display-panel.c
src/display/display-plugin.c [deleted file]
src/display/display-plugin.h [deleted file]
src/display/display-signal.c
src/display/display-state-transition.c
src/display/display-util.c
src/display/display.c
src/display/resource-display.c
src/display/setting.c
src/extcon/cradle.c
src/extcon/earjack.c
src/led/touch-key.c
src/shared/apps.c
src/shared/plugin.c
src/shared/plugin.h
src/time/time-handler.c
src/touchscreen/touchscreen.c
src/usb-gadget/usb-gadget.c
src/usb-host/usb-host.c
tests/deviced-common-private-test/test-mock.c

index b2162fd0954d76854209a9964a3ce02d0c03b742..f6e6802e299262c77608bb0d5402af00cc80542b 100644 (file)
@@ -61,7 +61,6 @@
 #include "power/power-boot.h"
 #include "power/power-doze.h"
 #include "device-interface.h"
-#include "display-plugin.h"
 #include "display-info.h"
 #include "display-signal.h"
 #include "display-lock.h"
@@ -78,8 +77,6 @@
  * @{
  */
 
-static struct display_plugin *disp_plgn;
-
 #define LOCK_SCREEN_WATING_TIME                300     /* 0.3 second */
 #define LONG_PRESS_INTERVAL             400       /* 0.4 seconds */
 #define SAMPLING_INTERVAL              1       /* 1 sec */
@@ -127,9 +124,6 @@ inline const struct syscommon_deviced_display_config* get_var_display_config()
  */
 static int display_probe(void *data)
 {
-       struct display_plugin *dp = (struct display_plugin *) data;
-       assert(dp);
-
        return 0;
 }
 
@@ -152,13 +146,6 @@ static const struct device_ops display_plugin_device_ops = {
 };
 
 DEVICE_OPS_REGISTER(&display_plugin_device_ops)
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-}
 /**
  * @}
  */
index d4ba8c914941c62a2e7e217129ee531b42983f00..905236a0f072740482aef0a79cb74a7f592bd235 100644 (file)
@@ -61,7 +61,6 @@
 #include "power/power-boot.h"
 #include "power/power-doze.h"
 #include "device-interface.h"
-#include "display-plugin.h"
 #include "display-signal.h"
 #include "display-lock.h"
 #include "display-backlight.h"
@@ -77,8 +76,6 @@
  * @{
  */
 
-static struct display_plugin *disp_plgn;
-
 #define LOCK_SCREEN_WATING_TIME                300     /* 0.3 second */
 #define LONG_PRESS_INTERVAL             2       /* 2 seconds */
 #define SAMPLING_INTERVAL              1       /* 1 sec */
@@ -126,9 +123,6 @@ inline const struct syscommon_deviced_display_config* get_var_display_config()
  */
 static int display_probe(void *data)
 {
-       struct display_plugin *dp = (struct display_plugin *) data;
-       assert(dp);
-
        return 0;
 }
 
@@ -151,13 +145,6 @@ static const struct device_ops display_plugin_device_ops = {
 };
 
 DEVICE_OPS_REGISTER(&display_plugin_device_ops)
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-}
 /**
  * @}
  */
index f2e0eb0a31e34a70523e3618689a9387871934e7..99c80b8a0a00e071b32b00ce607323c80e9268ae 100644 (file)
@@ -88,7 +88,6 @@ enum combination_process {
        COMBINATION_QUICKTALK   = KEY_COMBINATION_POWERKEY | KEY_COMBINATION_VOLUMEDOWN,
 };
 
-static struct display_plugin *disp_plgn;
 static struct timeval pressed_time;
 static guint longkey_timeout_id = 0;
 static guint longkey_restore_id = 0;
@@ -766,10 +765,6 @@ static struct syscommon_deviced_display_actor_ops display_menukey_actor = {
 
 static void __CONSTRUCTOR__ initialize(void)
 {
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-
        display_add_actor(&display_powerkey_actor);
        display_add_actor(&display_menukey_actor);
 
index 10c2d7ac2ccc00de6ebc8b2d225f6edd45f7d072..c06d40aad9f97d3e608bebd8f7a5fbc9a1fc5079 100644 (file)
@@ -41,7 +41,6 @@
 
 #define LOWBATCAPACITY 5
 
-static struct display_plugin *disp_plgn;
 static int auto_brightness_state = SETTING_BRIGHTNESS_AUTOMATIC_OFF;
 static bool lbm, hbm, hold_brt, lowdim;
 
@@ -365,10 +364,3 @@ void exit_level_handler(void)
        syscommon_notifier_unsubscribe_notify(DEVICED_NOTIFIER_LCD_OFF, display_off_changed);
        syscommon_notifier_unsubscribe_notify(DEVICED_NOTIFIER_LCD_OFF_COMPLETE, display_off_complete_changed);
 }
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-}
index 77415b36d5df9e2205b3745258b6783fcddd9b85..e70c725ed2e26c5af23be347a82f8c97198ef993 100644 (file)
@@ -47,7 +47,6 @@ enum bezel_type {
 
 static hal_device_bezel_state_e bezel_wakeup_control(void);
 
-static struct display_plugin *disp_plgn;
 static bool bezel_dev_available = false;
 static int bezel_wakeup = 0;
 static int theater_mode = 0;
@@ -298,10 +297,3 @@ static const struct device_ops bezel_device_ops = {
 };
 
 DEVICE_OPS_REGISTER(&bezel_device_ops)
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-}
index 80c0773d29f182c3f75bec4cf3d79e3a325f3be7..2d4108d36e432c2a6f4d9e31a6c705bc11eefff2 100644 (file)
@@ -64,7 +64,6 @@
 #include "power/power-boot.h"
 #include "power/power-doze.h"
 #include "device-interface.h"
-#include "display-plugin.h"
 #include "display-info.h"
 #include "battery-monitor.h"
 #include "display-signal.h"
@@ -88,8 +87,6 @@
  * @{
  */
 
-static struct display_plugin *disp_plgn;
-
 static enum device_ops_status status = DEVICE_OPS_STATUS_UNINIT;
 
 /*
@@ -854,9 +851,6 @@ static void init_lcd_operation(void)
  */
 static int display_probe(void *data)
 {
-       struct display_plugin *dp = (struct display_plugin *) data;
-       assert(dp);
-
        /**
         * FIXME: They should be connected via plugin interfaces
         *
@@ -964,14 +958,6 @@ static const struct device_ops display_plugin_device_ops = {
 
 DEVICE_OPS_REGISTER(&display_plugin_device_ops)
 
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-
-}
-
 /**
  * @}
  */
index b3c142d312b9cacfffc34a5744ccb8b31064b1c0..16ce9eb3f4249c14c0a9eb1863825a0ed28a04af 100644 (file)
@@ -89,7 +89,6 @@ enum combination_process {
        COMBINATION_QUICKTALK   = KEY_COMBINATION_POWERKEY | KEY_COMBINATION_VOLUMEDOWN,
 };
 
-static struct display_plugin *disp_plgn;
 static struct timeval pressed_time;
 static guint longkey_timeout_id = 0;
 static guint longkey_restore_id = 0;
@@ -694,10 +693,6 @@ static struct syscommon_deviced_display_actor_ops display_menukey_actor = {
 
 static void __CONSTRUCTOR__ initialize(void)
 {
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-
        display_add_actor(&display_powerkey_actor);
        display_add_actor(&display_menukey_actor);
 
index af0cb0da00d50b32b2b6f0c672a54a5d9bc12e9c..50f19ddf85a6aae48a9325de6613501480cd75c0 100644 (file)
@@ -35,7 +35,6 @@
 #define DBUS_COREAPPS_SWIMMODE_INTERFACE       "org.tizen.coreapps.home.swimmode"
 #define DBUS_SWIMMODE_MEMBER_STATUS            "status"
 
-static struct display_plugin *disp_plgn;
 static const struct device_ops *touchscreen_ops;
 static int swimmode_status;
 
@@ -147,10 +146,3 @@ static const struct device_ops swim_device_ops = {
 };
 
 DEVICE_OPS_REGISTER(&swim_device_ops)
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-}
index 5969622b95b3b0bf448979420c68b700e3703f98..3be5dc63bd1f18324d00f415d009d4e0c4679330 100644 (file)
@@ -23,6 +23,7 @@
 #include <vconf.h>
 #include <hal/hal-device-battery.h>
 #include <libsyscommon/libgdbus.h>
+#include <system/syscommon-plugin-deviced-display-interface.h>
 
 #include "shared/common.h"
 #include "shared/devices.h"
index 107194f7532ad6ca12bbc762948b063e37fd3d82..9e9fd7a48dc86b48ea228e9921fdf2977e4ea6ab 100644 (file)
@@ -47,7 +47,6 @@
 #include "poll.h"
 #include "display-lock.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "display-state-transition.h"
 #include "power/power.h"
 #include "power/power-off.h"
index e6a8fee0b67fb0f89786edb29d347c65d51852e9..19b604af5011e6e9a3837de8ad7df61bf3e9f407 100644 (file)
@@ -28,7 +28,6 @@
 #include <hal/hal-device-display.h>
 #include "shared/devices.h"
 #include "display-backlight.h"
-#include "display-plugin.h"
 
 #define FLAG_X_DPMS            0x2
 
index 5ef1cdd86190e84e0bb05838d75f1985fd7a1242..4313e561c179651ddd09b43d596e7e92a7f3dd08 100644 (file)
@@ -29,7 +29,6 @@
 #include "display-state-transition.h"
 #include "display-backlight.h"
 #include "display-panel.h"
-#include "display-plugin.h"
 
 #define DUMP_MODE_WAITING_TIME         600000  /* milisecond */
 #define LCD_PHASED_DELAY               10000   /* microsecond */
index 9279ce3cc73e8d335fb7f5685ebfcd5f1007b0fd..31c08f24a8ae5c68bb661dec35bbcaffb70371b8 100644 (file)
@@ -74,7 +74,6 @@
 #define EXPIRED_POPUP_COMM   "_APP_COMM_"
 #define EXPIRED_POPUP_ID     "_REQUEST_ID_"
 
-static struct display_plugin *disp_plgn;
 static char *custom_change_name;
 
 static GVariant *dbus_start(GDBusConnection *conn,
@@ -1592,11 +1591,3 @@ int init_pm_dbus(void)
 
        return 0;
 }
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn) {
-               _E("Failed to get display plugin variable.");
-       }
-}
index 77de7e56a10b912a64c49b261bcc89cd0b4a1f9b..17749b6e7fd980d3b0c64ad8b1ddfc2b2706157b 100644 (file)
@@ -31,7 +31,6 @@
 #include "shared/device-notifier.h"
 #include "device-interface.h"
 #include "display-dpms.h"
-#include "display-plugin.h"
 #include "device-interface.h"
 #include "core.h"
 
index e04648cf6e6da8dff85158bcbb92d84ebb1c2608..06fd15f28d1a8f740abd9d3382dc6799b96d5747 100644 (file)
@@ -32,7 +32,6 @@
 #include "lock-detector.h"
 #include "display-lock.h"
 #include "display-panel.h"
-#include "display-plugin.h"
 #include "display-config.h"
 #include "display-misc.h"
 #include "display-state-transition.h"
index 50c0256f2eee05d43e4be6d3980c961666c7de08..ccfa8c102ca76ea18fc7dd7543f60d1398bfdaea 100644 (file)
@@ -34,7 +34,6 @@
 #include "display-lock.h"
 #include "display-misc.h"
 #include "display-panel.h"
-#include "display-plugin.h"
 #include "display-state-transition.h"
 #include "lock-detector.h"
 #include "poll.h"
index 119c72d643da0a4194f1a2d412b8856feeb5efd4..492822a95219f48586e9fe8af93399d56b9b426c 100644 (file)
@@ -21,7 +21,6 @@
 #define __DISPLAY_OPS_H__
 
 #include <errno.h>
-#include "display-plugin.h"
 #include "shared/common.h"
 #include "shared/devices.h"
 //#include "display.h"
index 18ceec1d41d9ee1970e6a009f2207c8541e11d21..3c80f188c6bd62d57cf603ac14d3b9ce7c9cd95f 100644 (file)
@@ -29,7 +29,6 @@
 #include "display-lock.h"
 #include "display-misc.h"
 #include "display-panel.h"
-#include "display-plugin.h"
 #include "display-signal.h"
 #include "display-state-transition.h"
 #include "display-util.h"
diff --git a/src/display/display-plugin.c b/src/display/display-plugin.c
deleted file mode 100644 (file)
index 9fd0197..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <errno.h>
-#include "display-plugin.h"
-#include "display-config.h"
-#include "shared/log-macro.h"
-
-struct display_plugin g_display_plugin;
\ No newline at end of file
diff --git a/src/display/display-plugin.h b/src/display/display-plugin.h
deleted file mode 100644 (file)
index 8e39b2f..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * deviced
- *
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __DISPLAY_PLUGIN_H__
-#define __DISPLAY_PLUGIN_H__
-
-#include <unistd.h>
-#include <sys/types.h>
-#include <system/syscommon-plugin-deviced-common-interface.h>
-
-#include "core.h"
-#include "display-config.h"
-#include "display-backlight.h"
-#include "shared/devices.h"
-
-struct display_plugin {
-};
-extern struct display_plugin g_display_plugin;
-
-#endif //__DISPLAY_PLUGIN_H__
index 7f7d297694977b6b7612f7dde94207bf0d0197bd..ddeecf2ac52afcb47300550ecd2fa23e4e0603eb 100644 (file)
@@ -37,7 +37,6 @@ static const char *lcdoff_sig_lookup[SIGNAL_MAX] = {
        [SIGNAL_POST] = "LCDOffCompleted",
 };
 
-static struct display_plugin *disp_plgn;
 static long displayoff_time;
 
 void broadcast_lcd_on(enum signal_type type, enum deviced_event reason)
@@ -139,10 +138,3 @@ void display_signal_unregister_display_brightness_notifier(void)
 {
        syscommon_notifier_unsubscribe_notify(DEVICED_NOTIFIER_DISPLAY_BRIGHTNESS, broadcast_brightness_changed);
 }
-
-static void __CONSTRUCTOR__ initialize(void)
-{
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn)
-               _E("Failed to get display plugin variable.");
-}
index 641727f71fd7a6b16419ab63f5c1af22e2e1949d..489d452c41609289a721121f7f8e63dc4973364c 100644 (file)
@@ -32,7 +32,6 @@
 #include "device-interface.h"
 #include "display-state-transition.h"
 #include "display-lock.h"
-#include "display-plugin.h"
 #include "display-signal.h"
 #include "display-util.h"
 #include "extcon/extcon.h"
index 6670ed47630f3e0d45bd4c4b9c33829afc95a12b..a279a622ca4577c21327911a4cee38db5b08ca14 100644 (file)
  * limitations under the License.
  */
 
+#include <system/syscommon-plugin-deviced-display-interface.h>
+
+#include "poll.h"
 #include "display-misc.h"
-#include "display-plugin.h"
 #include "display-util.h"
 
 int display_util_get_display_state(int s_bits)
index 7f1864bf2ac690a3a82920fbc6997bb97761f1b9..1cd4a682ece7aafd22cd8fcd722caceae11de8c2 100644 (file)
@@ -34,7 +34,6 @@
 #include "device-interface.h"
 #include "display.h"
 #include "display-lock.h"
-#include "display-plugin.h"
 #include "display-config.h"
 #include "display-misc.h"
 #include "display-ops.h"
@@ -514,7 +513,7 @@ static int display_probe(void *data)
                 */
                display_plugin_device_ops = find_device("display-plugin");
                if (display_plugin_device_ops && display_plugin_device_ops->probe) {
-                       ret = display_plugin_device_ops->probe(&g_display_plugin);
+                       ret = display_plugin_device_ops->probe(NULL);
                        if (ret < 0)
                                return ret;
                }
index 4da97536b918477dde45fc1bdc57901b62cf6d2d..dca5edfdf554305e92f195ac5f38c6ffd249fb9a 100644 (file)
@@ -31,7 +31,6 @@
 #include "device-interface.h"
 #include "display-misc.h"
 #include "display-lock.h"
-#include "display-plugin.h"
 
 typedef union {
        int32_t i32;
@@ -290,7 +289,7 @@ static int get_display_attr_data(int resource_id,
                break;
        case DEVICED_DISPLAY_ATTR_INT_CONFIG_POWERKEY_DOUBLEPRESS:
                /**
-                * FIXME: Directly access extern g_display_plugin. Fix it not to directly access
+                * FIXME: Directly access extern g_display_config. Fix it not to directly access
                 *        variable via extern.
                 */
                if (!g_display_config)
@@ -300,7 +299,7 @@ static int get_display_attr_data(int resource_id,
                break;
        case DEVICED_DISPLAY_ATTR_DOUBLE_CONFIG_LONGPRESS_INTERVAL:
                /**
-                * FIXME: Directly access extern g_display_plugin. Fix it not to directly access
+                * FIXME: Directly access extern g_display_config. Fix it not to directly access
                 *        variable via extern.
                 */
                if (!g_display_config)
@@ -310,7 +309,7 @@ static int get_display_attr_data(int resource_id,
                break;
        case DEVICED_DISPLAY_ATTR_INT_CONFIG_TOUCH_WAKEUP:
                /**
-                * FIXME: Directly access extern g_display_plugin. Fix it not to directly access
+                * FIXME: Directly access extern g_display_config. Fix it not to directly access
                 *        variable via extern.
                 */
                if (!g_display_config)
index b361dffcdc75869b7c218289454d8d47777d0dd3..2c4a9ff27c63e883d4db26229898fcb226aa2137 100644 (file)
@@ -27,7 +27,6 @@
 #include "setting.h"
 #include "display-misc.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "display-state-transition.h"
 #include "led/touch-key.h"
 #include "shared/log.h"
@@ -47,7 +46,6 @@ static const char *setting_keys[SETTING_GET_END] = {
        [SETTING_EXCLUSIVE_DIM_TIMEOUT] = VCONFKEY_SETAPPL_TIMEOUT_DIM,
 };
 
-static struct display_plugin *disp_plgn;
 static int lock_screen_state = VCONFKEY_IDLE_UNLOCK;
 static bool lock_screen_bg_state = false;
 static int force_lcdtimeout = 0;
@@ -429,9 +427,4 @@ static void __CONSTRUCTOR__ initialize(void)
        ret = vconf_get_int(VCONFKEY_SETAPPL_TIMEOUT_DIM, &exclusive_dim_timeout);
        if (ret < 0 || exclusive_dim_timeout < 0)
                exclusive_dim_timeout = EXCLUSIVE_DIM_TIMEOUT_UNSET;
-
-       disp_plgn = get_var_display_plugin();
-       if (!disp_plgn) {
-               _E("Failed to get display plugin variable.");
-       }
 }
index 1ef7bcc0acc1a33517c9a3fa4fe783f5eed76ef8..aeebaae6334dd77828130a6fd90e0e9f14dfa35b 100644 (file)
@@ -28,7 +28,6 @@
 #include "core.h"
 #include "display-lock.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "display-state-transition.h"
 #include "extcon/extcon.h"
 #include "shared/plugin.h"
index e358dfc4819548d8caff58057f495002efb6ff94..2276ec4723d1ec73ceb6059684ae0ca155973f70 100644 (file)
@@ -26,7 +26,6 @@
 #include "core/log.h"
 #include "poll.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "display-state-transition.h"
 #include "extcon/extcon.h"
 #include "shared/plugin.h"
index 39c77abd524f3f4ec402131fb300c0f4a643e39d..2cf5009a1ceeff3c8dac3ed9b5699c546e2e0538 100644 (file)
@@ -30,7 +30,6 @@
 #include "core.h"
 #include "setting.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "touch-key.h"
 #include "shared/plugin.h"
 
index 1727922e492c6cb97945be9a4a0df1a2fb28bf9a..fb6df4ffe4b35e6bf86377e9e5189ad456d67fc8 100644 (file)
@@ -24,7 +24,6 @@
 #include "core/log.h"
 #include "shared/common.h"
 #include "apps.h"
-#include "display-plugin.h"
 #include "display-state-transition.h"
 
 #define POPUP_METHOD "PopupLaunch"
index a31027b3db030d7cba40730a3f0a22c87191e14c..e5bf3a8587dcccdb1395a2c8c0f4f731c5a4b127 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "plugin.h"
 #include "common.h"
-#include "display-plugin.h"
 #include "core/log.h"
 
 #ifndef LIBPATH
 #endif
 #define MODULE_PATH            LIBPATH"/deviced/"
 
-extern struct display_plugin g_display_plugin;
 static struct battery_plugin battery_plgn;
 static GList *plgn_list;
 
-inline struct display_plugin *get_var_display_plugin(void)
-{
-       return &g_display_plugin;
-}
-
 inline struct battery_plugin *get_var_battery_plugin(void)
 {
        return &battery_plgn;
index 1d259cb04b9b2a6a705097756e1ef0107a6dfe98..c850041f57786db8ec38f02b4d40b611a02ae5e9 100644 (file)
@@ -22,7 +22,6 @@
 #include "display-ops.h"
 #include "battery/battery-ops.h"
 
-struct display_plugin *get_var_display_plugin(void);
 struct battery_plugin *get_var_battery_plugin(void);
 
 int load_plugin(const char *id, void **h);
index 5158f5aeef536cde083433cc3d4b4a074ebb3f04..c53c98ef4b2cda28d74db613cb6aa4705ba7fbff 100644 (file)
@@ -39,7 +39,6 @@
 #include "poll.h"
 #include "core.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "shared/common.h"
 #include "shared/device-notifier.h"
 #include "shared/plugin.h"
index cfd851d807cf2a46a1109fb9a9abb86fe5034115..b81d0c94c196172ed2df90bfeb16e558308ac635 100644 (file)
@@ -30,7 +30,6 @@
 #include "core.h"
 #include "display-ops.h"
 #include "display-panel.h"
-#include "display-plugin.h"
 #include "display-config.h"
 #include "power/power-boot.h"
 #include "shared/plugin.h"
index 711f835843f548bcb28ed3f311c1597ab3c0367b..635f7c295e32a3048b75519f20d5a739776ca462 100644 (file)
@@ -26,7 +26,6 @@
 #include "poll.h"
 #include "display-lock.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "shared/plugin.h"
 
 #include "usb-gadget.h"
index 999dfd51bfd584ab33a82ffdb82f52a9da1b9589..29ea83a6940aacd017699197aaf5993e68bab8eb 100644 (file)
@@ -34,7 +34,6 @@
 #include "core/udev.h"
 #include "extcon/extcon.h"
 #include "display-ops.h"
-#include "display-plugin.h"
 #include "display-config.h"
 #include "display-state-transition.h"
 #include "core.h"
index df9d7feb21fd5992c3f150a486c057b3e65629d1..4b222481849ef5da40f10f1cdb5201df32eb4469 100644 (file)
@@ -2,15 +2,11 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-/* FIXME: This would be replaced to plugin-api-deviced */
-#include "display-plugin.h"
 #include "display-state-transition.h"
 
 #include "test-main.h"
 #include "test-mock.h"
 
-struct display_plugin g_display_plugin;
-
 int __wrap_access(const char *pathname, int mode)
 {
        return mock_type(int);