It coexists with the previous way, that is, loading configuration via
display_plugin_device_ops->probe(). This is because it is still being
used by mobile/wearable profile and they currently not be separated
into plugin backend. Only when the result of probe() hasn't loaded
display config, where a plugin backend has completely separated into
dedicated backend repository, the plugin-api underatakes what should
have done by the probe().
Change-Id: I86c68a95cb43cd3add79e3f9625d26a58506b30b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
#include <libsyscommon/resource-manager.h>
#include <system/syscommon-plugin-deviced-power-interface.h>
#include <system/syscommon-plugin-deviced-common-interface.h>
+#include <system/syscommon-plugin-deviced-display.h>
#include <shared/devices.h>
#include "core/udev.h"
if (ret < 0)
return ret;
+ if (!g_display_plugin.config) {
+ ret = syscommon_plugin_deviced_display_load_config(&g_display_plugin.config);
+ if (ret < 0)
+ return ret;
+ }
+
/**
* load display hal backend
* if there is no display shared library,