summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManiraj Devadoss <Maniraj.Devadoss@in.bosch.com>2018-01-22 18:10:13 +0530
committerRajendraprasad K J <KarammelJayakumar.Rajendraprasad@in.bosch.com>2019-04-30 06:32:48 -0400
commit35ba050e46087cf8163f33ff854be3bfce3ab856 (patch)
tree05d42e070f6f494113bc1d792b485bd504db1a86
parente9c2fe4c5034a06b159cfd45dbd485755cbaf4c8 (diff)
downloadwayland-ivi-extension-35ba050e46087cf8163f33ff854be3bfce3ab856.tar.gz
ivi-controller: new config option for debug-scopes
read the debug scopes from weston.ini and export it to the weston-client Signed-off-by: Maniraj Devadoss <Maniraj.Devadoss@in.bosch.com>
-rw-r--r--weston-ivi-shell/src/ivi-controller.c9
-rw-r--r--weston-ivi-shell/src/ivi-controller.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index fd6c7d8..5a5e17c 100644
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -42,6 +42,7 @@
#include "wayland-util.h"
#define IVI_CLIENT_SURFACE_ID_ENV_NAME "IVI_CLIENT_SURFACE_ID"
+#define IVI_CLIENT_DEBUG_SCOPES_ENV_NAME "IVI_CLIENT_DEBUG_STREAM_NAMES"
struct ivilayer;
struct iviscreen;
@@ -1976,6 +1977,10 @@ get_config(struct weston_compositor *compositor, struct ivishell *shell)
"bkgnd-surface-id",
&shell->bkgnd_surface_id, -1);
+ weston_config_section_get_string(section,
+ "debug-scopes",
+ &shell->debug_scopes, NULL);
+
weston_config_section_get_color(section,
"bkgnd-color",
&shell->bkgnd_color, 0xFF000000);
@@ -2163,6 +2168,10 @@ launch_client_process(void *data)
sprintf(option, "%d", shell->bkgnd_surface_id);
setenv(IVI_CLIENT_SURFACE_ID_ENV_NAME, option, 0x1);
+ if (shell->debug_scopes) {
+ setenv(IVI_CLIENT_DEBUG_SCOPES_ENV_NAME, shell->debug_scopes, 0x1);
+ free(shell->debug_scopes);
+ }
shell->client = weston_client_start(shell->compositor,
shell->ivi_client_name);
diff --git a/weston-ivi-shell/src/ivi-controller.h b/weston-ivi-shell/src/ivi-controller.h
index fe82597..c279146 100644
--- a/weston-ivi-shell/src/ivi-controller.h
+++ b/weston-ivi-shell/src/ivi-controller.h
@@ -92,6 +92,7 @@ struct ivishell {
struct wl_client *client;
char *ivi_client_name;
+ char *debug_scopes;
};
#endif /* WESTON_IVI_SHELL_SRC_IVI_CONTROLLER_H_ */