Remove parcel.h header from pkgmgr-info.h 64/319364/2
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 22 Oct 2024 04:15:35 +0000 (13:15 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Tue, 22 Oct 2024 04:27:08 +0000 (13:27 +0900)
Remove parcel.h from pkgmgr-info.h and
move the following definition of apis to pkgmgrinfo_extension.h

pkgmgrinfo_pkginfo_to_parcel
pkgmgrinfo_appinfo_to_parcel
pkgmgrinfo_pkginfo_from_parcel
pkgmgrinfo_appinfo_from_parcel

Change-Id: I4c9eaa7c768abadcc7d15f8a3df6f842d70280e5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
include/pkgmgr-info.h
include/pkgmgrinfo_extension.h [new file with mode: 0644]
src/pkgmgrinfo_appinfo.c
src/pkgmgrinfo_pkginfo.c

index 9ca01f92d71fbb100440d650e465aef5e12e0fe2..0c9aec31e57fab6b5dee6695d32ba89d1b60dd30 100644 (file)
@@ -43,7 +43,6 @@
 #define __PKG_INFO_H__
 
 #include <errno.h>
-#include <parcel.h>
 #include <stdbool.h>
 #include <sys/types.h>
 #include <unistd.h>
@@ -7583,11 +7582,6 @@ int pkgmgrinfo_appinfo_appcontrol_foreach_privilege(
                pkgmgrinfo_pkg_privilege_list_cb privilege_func,
                void *user_data);
 
-int pkgmgrinfo_pkginfo_to_parcel(pkgmgrinfo_pkginfo_h handle, parcel_h* parcel);
-int pkgmgrinfo_appinfo_to_parcel(pkgmgrinfo_appinfo_h handle, parcel_h* parcel);
-int pkgmgrinfo_pkginfo_from_parcel(parcel_h parcel, pkgmgrinfo_pkginfo_h* handle);
-int pkgmgrinfo_appinfo_from_parcel(parcel_h parcel, pkgmgrinfo_appinfo_h* handle);
-
 /**
  * @pkgmgrinfo client API end
 **/
diff --git a/include/pkgmgrinfo_extension.h b/include/pkgmgrinfo_extension.h
new file mode 100644 (file)
index 0000000..a61a578
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef __PKGMGRINFO_EXTENSION_H__
+#define __PKGMGRINFO_EXTENSION_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <parcel.h>
+
+#include "pkgmgrinfo_type.h"
+
+int pkgmgrinfo_pkginfo_to_parcel(pkgmgrinfo_pkginfo_h handle, parcel_h* parcel);
+int pkgmgrinfo_appinfo_to_parcel(pkgmgrinfo_appinfo_h handle, parcel_h* parcel);
+int pkgmgrinfo_pkginfo_from_parcel(parcel_h parcel, pkgmgrinfo_pkginfo_h* handle);
+int pkgmgrinfo_appinfo_from_parcel(parcel_h parcel, pkgmgrinfo_appinfo_h* handle);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif
\ No newline at end of file
index 63ee779286192ddef010cb07ea63e70313a2ee64..385cb8ba4b32469cb49d4c9b345fa94affc8829f 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "pkgmgr-info.h"
 #include "pkgmgrinfo_debug.h"
+#include "pkgmgrinfo_extension.h"
 #include "pkgmgrinfo_private.h"
 #include "pkgmgr_parser.h"
 #include "manager/pkginfo_manager.h"
index 879b7073b776e0ff2d92d2ec57f984b96206f525..8ecf48b6364507ad7d73fe11f958b1a3229622ef 100644 (file)
@@ -34,6 +34,7 @@
 #include <glib.h>
 
 #include "pkgmgrinfo_basic.h"
+#include "pkgmgrinfo_extension.h"
 #include "pkgmgrinfo_private.h"
 #include "pkgmgrinfo_debug.h"
 #include "pkgmgr-info.h"