compositor: remove the weston_config field in weston_compositor
The config can now be retrieved with a new function defined in weston.h, wet_get_config(weston_compositor*). Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
committed by
Pekka Paalanen
parent
fba27fbef2
commit
d52f3b775b
@@ -678,7 +678,7 @@ static struct hmi_server_setting *
|
||||
hmi_server_setting_create(struct weston_compositor *ec)
|
||||
{
|
||||
struct hmi_server_setting *setting = MEM_ALLOC(sizeof(*setting));
|
||||
struct weston_config *config = ec->config;
|
||||
struct weston_config *config = wet_get_config(ec);
|
||||
struct weston_config_section *shell_section = NULL;
|
||||
|
||||
shell_section = weston_config_get_section(config, "ivi-shell",
|
||||
@@ -1140,7 +1140,7 @@ ivi_hmi_controller_add_launchers(struct hmi_controller *hmi_ctrl,
|
||||
if (0 == y_count)
|
||||
y_count = 1;
|
||||
|
||||
config = hmi_ctrl->compositor->config;
|
||||
config = wet_get_config(hmi_ctrl->compositor);
|
||||
if (!config)
|
||||
return;
|
||||
|
||||
@@ -1881,7 +1881,7 @@ initialize(struct hmi_controller *hmi_ctrl)
|
||||
uint32_t *dest;
|
||||
};
|
||||
|
||||
struct weston_config *config = hmi_ctrl->compositor->config;
|
||||
struct weston_config *config = wet_get_config(hmi_ctrl->compositor);
|
||||
struct weston_config_section *section = NULL;
|
||||
int result = 0;
|
||||
int i = 0;
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "ivi-layout-export.h"
|
||||
#include "ivi-layout-shell.h"
|
||||
#include "shared/helpers.h"
|
||||
#include "weston.h"
|
||||
|
||||
/* Representation of ivi_surface protocol object. */
|
||||
struct ivi_shell_surface
|
||||
@@ -416,7 +417,7 @@ ivi_shell_setting_create(struct ivi_shell_setting *dest,
|
||||
int *argc, char *argv[])
|
||||
{
|
||||
int result = 0;
|
||||
struct weston_config *config = compositor->config;
|
||||
struct weston_config *config = wet_get_config(compositor);
|
||||
struct weston_config_section *section;
|
||||
|
||||
const struct weston_option ivi_shell_options[] = {
|
||||
|
||||
Reference in New Issue
Block a user