The function sends the request with the ID to amd.
amd checks the request ID while registering the process if the caller is
not registered.
Change-Id: I0255fdc13f9ec1244bf53265880296107159efd6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
}
extern "C" API int aul_notify_start(void) {
+ const char* req_id = getenv("AUL_REQUEST_ID");
+ tizen_base::Bundle b {
+ { AUL_K_REQUEST_ID, std::string(req_id ? req_id : "0") },
+ };
return AppRequest(APP_NOTIFY_START, getuid())
- .SendCmdOnly(AUL_SOCK_NOREPLY);
+ .With(std::move(b))
+ .SendSimply(AUL_SOCK_NOREPLY);
}
extern "C" API const char* aul_app_status_convert_to_string(int status) {
int ret = aul_notify_start();
EXPECT_EQ(ret, AUL_R_OK);
EXPECT_EQ(cmd, APP_NOTIFY_START);
- EXPECT_EQ(opt, AUL_SOCK_NOREPLY);
+ EXPECT_EQ(opt, AUL_SOCK_BUNDLE | AUL_SOCK_NOREPLY);
}
TEST_F(StatusTest, aul_app_status_convert_to_string_P) {