--- /dev/null
+// Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+// Use of this source code is governed by an apache-2.0 license that can be
+// found in the LICENSE file.
+
+#include "abstract_request_handler.hh"
+
+#include "pkgmgrinfo_debug.h"
+
+#include <string>
+
+namespace pkgmgr_server {
+namespace request_handler {
+
+void AbstractRequestHandler::SetPID(int pid) {
+ pid_ = pid;
+}
+
+int AbstractRequestHandler::GetPID() {
+ return pid_;
+}
+
+} // namespace request_handler
+} // namespace pkgmgr_server
virtual bool HandleRequest(unsigned char* data, int size, std::string locale) = 0;
virtual std::vector<uint8_t> GetResult() = 0;
+ void SetPID(int pid);
+
+ protected:
+ int GetPID();
+
+ private:
+ int pid_;
};
} // namespace request_handler