diff --git a/ipc/native/src/c_wrapper/include/c_ashmem.h b/ipc/native/src/c_wrapper/include/c_ashmem.h index 1a76e0481481d24dcbb6c6717e5c566feb4a2644..7925ea1d5565b647159c8e1e88cef9f46ba199d8 100644 --- a/ipc/native/src/c_wrapper/include/c_ashmem.h +++ b/ipc/native/src/c_wrapper/include/c_ashmem.h @@ -16,12 +16,12 @@ #ifndef IPC_C_ASHMEM_H #define IPC_C_ASHMEM_H +#include + #ifdef __cplusplus extern "C" { #endif -#include - struct CAshmem; typedef struct CAshmem CAshmem; diff --git a/ipc/native/src/c_wrapper/include/c_parcel.h b/ipc/native/src/c_wrapper/include/c_parcel.h index a648100dc4610abf7d4e6e0c83155dc155965950..3e4dd60ed4feeb244efdd1356651e57afb705423 100644 --- a/ipc/native/src/c_wrapper/include/c_parcel.h +++ b/ipc/native/src/c_wrapper/include/c_parcel.h @@ -16,17 +16,15 @@ #ifndef IPC_C_PARCEL_H #define IPC_C_PARCEL_H -#include "c_ashmem.h" - +#include #include +#include +#include "c_ashmem.h" #ifdef __cplusplus extern "C" { #endif -#include -#include - struct MessageParcelHolder; typedef struct MessageParcelHolder CParcel; diff --git a/ipc/native/src/c_wrapper/include/c_parcel_internal.h b/ipc/native/src/c_wrapper/include/c_parcel_internal.h index c8093b32cbd3d82635c045065e094d375e206fdb..10152eb22d3b96996f39f27fed93462c5d866ba4 100644 --- a/ipc/native/src/c_wrapper/include/c_parcel_internal.h +++ b/ipc/native/src/c_wrapper/include/c_parcel_internal.h @@ -16,11 +16,10 @@ #ifndef IPC_C_PARCEL_INTERANL_H #define IPC_C_PARCEL_INTERANL_H -#include "c_parcel.h" -#include "c_ashmem_internal.h" - #include #include "message_parcel.h" +#include "c_ashmem_internal.h" +#include "c_parcel.h" struct MessageParcelHolder : public virtual OHOS::RefBase { explicit MessageParcelHolder(OHOS::MessageParcel *parcel = nullptr); diff --git a/ipc/native/src/c_wrapper/include/c_process.h b/ipc/native/src/c_wrapper/include/c_process.h index 1a1101efa01b470d2a6aaf8dda98dd1b07faf0b6..3f21a32f629013d6ea485466b048026343e85e89 100644 --- a/ipc/native/src/c_wrapper/include/c_process.h +++ b/ipc/native/src/c_wrapper/include/c_process.h @@ -16,15 +16,14 @@ #ifndef IPC_C_PROCESS_H #define IPC_C_PROCESS_H +#include #include "c_parcel.h" +#include "c_remote_object.h" #ifdef __cplusplus extern "C" { #endif -#include -#include "c_remote_object.h" - CRemoteObject *GetContextManager(void); void JoinWorkThread(void); void StopWorkThread(void); diff --git a/ipc/native/src/c_wrapper/include/c_remote_object.h b/ipc/native/src/c_wrapper/include/c_remote_object.h index fc2d176815b0b1e89b64573f1d23620f4042cafb..9189fa61ec43aa4f82cf568bb61af155634c92ac 100644 --- a/ipc/native/src/c_wrapper/include/c_remote_object.h +++ b/ipc/native/src/c_wrapper/include/c_remote_object.h @@ -16,14 +16,13 @@ #ifndef IPC_C_REMOTE_OBJECT_H #define IPC_C_REMOTE_OBJECT_H +#include +#include "c_parcel.h" + #ifdef __cplusplus extern "C" { #endif -#include - -#include "c_parcel.h" - struct CRemoteObjectHolder; typedef struct CRemoteObjectHolder CRemoteObject;