}
static int
+wet_load_shell(struct weston_compositor *compositor,
+ const char *name, int *argc, char *argv[])
+{
+ int (*shell_init)(struct weston_compositor *ec,
+ int *argc, char *argv[]);
+
+ shell_init = wet_load_module_entrypoint(name, "wet_shell_init");
+ if (!shell_init)
+ return -1;
+ if (shell_init(compositor, argc, argv) < 0)
+ return -1;
+ return 0;
+}
+
+static int
load_modules(struct weston_compositor *ec, const char *modules,
int *argc, char *argv[])
{
weston_config_section_get_string(section, "shell", &shell,
"desktop-shell.so");
- if (load_modules(ec, shell, &argc, argv) < 0)
+ if (wet_load_shell(ec, shell, &argc, argv) < 0)
goto out;
weston_config_section_get_string(section, "modules", &modules, "");
wet_load_module_entrypoint(const char *name, const char *entrypoint);
int
+wet_shell_init(struct weston_compositor *ec,
+ int *argc, char *argv[]);
+int
wet_module_init(struct weston_compositor *ec,
int *argc, char *argv[]);
int
}
WL_EXPORT int
-wet_module_init(struct weston_compositor *ec,
- int *argc, char *argv[])
+wet_shell_init(struct weston_compositor *ec,
+ int *argc, char *argv[])
{
struct weston_seat *seat;
struct desktop_shell *shell;
}
WL_EXPORT int
-wet_module_init(struct weston_compositor *compositor,
- int *argc, char *argv[])
+wet_shell_init(struct weston_compositor *compositor,
+ int *argc, char *argv[])
{
struct fullscreen_shell *shell;
struct weston_seat *seat;
* Initialization of ivi-shell.
*/
WL_EXPORT int
-wet_module_init(struct weston_compositor *compositor,
- int *argc, char *argv[])
+wet_shell_init(struct weston_compositor *compositor,
+ int *argc, char *argv[])
{
struct ivi_shell *shell;
struct ivi_shell_setting setting = { };