/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2021 - 2022 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return nullptr;
}
-int CreateCacheRequest::GetSize() {
+size_t CreateCacheRequest::GetSize() {
return 0;
}
return getpid();
}
+pid_t CreateCacheRequest::GetSenderTID() {
+ return gettid();
+}
+
uid_t CreateCacheRequest::GetSenderUID() {
return uid_;
}
return pkgmgr_common::ReqType::CREATE_CACHE;
}
-bool CreateCacheRequest::SendData(unsigned char* data, int size) {
+bool CreateCacheRequest::SendData(const tizen_base::Parcel& parcel) {
+ bool ret;
+ const_cast<tizen_base::Parcel&>(parcel).ReadBool(&ret);
+ if (listener_ != nullptr)
+ listener_->OnCreateCacheDone(ret);
+
return true;
}