ivi-shell: rename ivi_controller_interface
The name of ivi_controller_interface is changed to ivi_layout_interface
with this patch.
This name is better suited to the interface, because it is implemented
in ivi-layout.c and its methods are linked to ivi_layout* functions.
Furthermore, the controller modules (e.g. hmi-controller) are the users
of this interface and they have their own interfaces,
which are called *_controller_interface,
e.g.: ivi_hmi_controller_interface.
This causes confusion about the software architecture.
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Tested-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 33d7143..c6d4b90 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -2682,7 +2682,7 @@
wl_signal_add(&ivisurf->configured, listener);
}
-static struct ivi_controller_interface ivi_controller_interface = {
+static struct ivi_layout_interface ivi_layout_interface = {
/**
* commit all changes
*/
@@ -2798,7 +2798,7 @@
char buffer[256];
int (*controller_module_init)(struct weston_compositor *compositor,
int *argc, char *argv[],
- const struct ivi_controller_interface *interface,
+ const struct ivi_layout_interface *interface,
size_t interface_version);
if (modules == NULL)
@@ -2814,8 +2814,8 @@
return -1;
if (controller_module_init(compositor, argc, argv,
- &ivi_controller_interface,
- sizeof(struct ivi_controller_interface)) != 0) {
+ &ivi_layout_interface,
+ sizeof(struct ivi_layout_interface)) != 0) {
weston_log("ivi-shell: Initialization of controller module fails");
return -1;
}