diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2024-02-05 13:06:45 +0900 |
---|---|---|
committer | HwanKyu Jhun <h.jhun@samsung.com> | 2024-02-05 06:37:59 +0000 |
commit | a336b4fcc565cd81147ada249748485b02570aa3 (patch) | |
tree | c6f1e4c7a68ac3fb8e810613eb6e58915f14bae9 | |
parent | 819a3f2676ec238da3123c5bdaeb2be361a5be3a (diff) | |
download | aul-1-a336b4fcc565cd81147ada249748485b02570aa3.tar.gz aul-1-a336b4fcc565cd81147ada249748485b02570aa3.tar.bz2 aul-1-a336b4fcc565cd81147ada249748485b02570aa3.zip |
Add a new command for thaw event
Adds:
- APP_THAW
Change-Id: I5b1225716cac6ebebece3e3c0dc320e024dde572
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/aul/aul_cmd.cc | 1 | ||||
-rw-r--r-- | src/aul/aul_launch.c | 6 | ||||
-rw-r--r-- | src/aul/include/aul.h | 1 | ||||
-rw-r--r-- | src/aul/include/aul_cmd.h | 1 |
4 files changed, 9 insertions, 0 deletions
diff --git a/src/aul/aul_cmd.cc b/src/aul/aul_cmd.cc index 84c64650..1f565593 100644 --- a/src/aul/aul_cmd.cc +++ b/src/aul/aul_cmd.cc @@ -223,6 +223,7 @@ extern "C" API const char* aul_cmd_convert_to_string(int cmd) { "PKG_PRE_EVENT_SEND", "PROC_GROUP_FOREACH", "PROC_GROUP_GET", + "APP_THAW", "CUSTOM_COMMAND"}; diff --git a/src/aul/aul_launch.c b/src/aul/aul_launch.c index d4827772..fea5991e 100644 --- a/src/aul/aul_launch.c +++ b/src/aul/aul_launch.c @@ -336,6 +336,11 @@ static void __dispatch_app_connect(aul_request_h req) { } +static void __dispatch_app_thaw(aul_request_h req) +{ + __invoke_aul_handler(AUL_THAW, req->b); +} + static dispatcher __dispatcher[] = { [APP_START] = __dispatch_app_start, [APP_START_RES] = __dispatch_app_start, @@ -366,6 +371,7 @@ static dispatcher __dispatcher[] = { [WATCHDOG_ENABLE] = __dispatch_watchdog_enable, [WATCHDOG_DISABLE] = __dispatch_watchdog_disable, [APP_CONNECT] = __dispatch_app_connect, + [APP_THAW] = __dispatch_app_thaw, }; static void __destroy_request(struct aul_request_s *req) diff --git a/src/aul/include/aul.h b/src/aul/include/aul.h index 41b468fb..8e1dd6c6 100644 --- a/src/aul/include/aul.h +++ b/src/aul/include/aul.h @@ -77,6 +77,7 @@ typedef enum _aul_type { AUL_UPDATE_REQUESTED, AUL_TERMINATE_INST, AUL_TERMINATE_BG_INST, + AUL_THAW, } aul_type; typedef enum aul_widget_lifecycle_event { diff --git a/src/aul/include/aul_cmd.h b/src/aul/include/aul_cmd.h index d39f9461..32d41a6d 100644 --- a/src/aul/include/aul_cmd.h +++ b/src/aul/include/aul_cmd.h @@ -222,6 +222,7 @@ enum app_cmd { PKG_PRE_EVENT_SEND = 176, PROC_GROUP_FOREACH = 177, PROC_GROUP_GET = 178, + APP_THAW = 179, APP_CMD_MAX }; |