proc-monitor: Add support of new robotapp app type 80/315180/2
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 26 Jul 2024 06:22:24 +0000 (15:22 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 26 Jul 2024 07:24:05 +0000 (16:24 +0900)
Add support of new robotapp app type which is only for robot profile
on SMP platform. "robotapp" is working as service app.

Change-Id: I744c6c4f3b65a3dca008cf2364e67d69dc2e4cc5
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/process/proc-monitor.c

index bd6df78c54fecdbe8e08940aef6a56e68c3c1e7a..6f709e8cc13ceb93a9cfc1992dfe316d8f714aad 100644 (file)
@@ -72,6 +72,7 @@
 #define APP_TYPE_UI                    "uiapp"
 #define APP_TYPE_WIDGET                        "widgetapp"
 #define APP_TYPE_WATCH                 "watchapp"
+#define APP_TYPE_ROBOT                 "robotapp"
 
 static int current_lcd_state;
 
@@ -1133,6 +1134,8 @@ static int get_app_type(char *pkgtype, int *apptype)
                *apptype = PROC_TYPE_WATCH;
        } else if (!strncmp(pkgtype, APP_TYPE_UI, sizeof(APP_TYPE_UI))) {
                *apptype = PROC_TYPE_GUI;
+       } else if (!strncmp(pkgtype, APP_TYPE_ROBOT, sizeof(APP_TYPE_ROBOT))) {
+               *apptype = PROC_TYPE_SERVICE;
        } else {
                _E("Unknown pkgtype is not able to get app type");
                return -EINVAL;