--- /dev/null
+/*
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "parcel_factory.hh"
+#include "pkgmgrinfo_debug.h"
+
+#include "abstract_parcel.hh"
+#include "appctrlprivinfo_parcel.hh"
+#include "appinfo_parcel.hh"
+#include "certinfo_parcel.hh"
+#include "datactrlinfo_parcel.hh"
+#include "filter_parcel.hh"
+#include "pkginfo_parcel.hh"
+#include "string_parcel.hh"
+
+namespace pkgmgr_common {
+namespace parcel {
+
+ParcelFactory::ParcelFactory() {}
+ParcelFactory::~ParcelFactory() {}
+
+ParcelFactory& ParcelFactory::GetInst() {
+ static ParcelFactory instance;
+ return instance;
+}
+
+std::unique_ptr<AbstractParcel> ParcelFactory::CreateParcel(unsigned char* data,
+ int size) {
+ return nullptr;
+}
+
+} // namespace parcel
+} // namespace pkgmgr_common
--- /dev/null
+/*
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef PARCEL_FACTORY_HH_
+#define PARCEL_FACTORY_HH_
+
+#include <memory>
+
+#include "abstract_parcel.hh"
+
+namespace pkgmgr_common {
+namespace parcel {
+
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API ParcelFactory {
+ public:
+ static ParcelFactory& GetInst();
+ std::unique_ptr<AbstractParcel> CreateParcel(unsigned char* data, int size);
+
+ private:
+ ParcelFactory();
+ ~ParcelFactory();
+};
+
+
+} // namespace parcel
+} // namespace pkgmgr_common
+
+#endif // PARCEL_FACTORY_HH_