From 5460565e934e12a6b2e56639ff6d144c2542ed54 Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Sat, 13 May 2023 10:16:35 +0800 Subject: [PATCH 1/3] add ipc code check config Signed-off-by: hwzhangchuang --- CODEOWNERS | 17 +++++++++++++++++ common/include/dscreen_ipc_interface_code.h | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 CODEOWNERS create mode 100644 common/include/dscreen_ipc_interface_code.h diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 00000000..5927a2cd --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2023 Huawei Device 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. + */ + + # any change to common/include/dscreen_ipc_interface_code.h needs to be reviewed by @leonchan5 +common/include/dscreen_ipc_interface_code.h @leonchan5 \ No newline at end of file diff --git a/common/include/dscreen_ipc_interface_code.h b/common/include/dscreen_ipc_interface_code.h new file mode 100644 index 00000000..b49308a9 --- /dev/null +++ b/common/include/dscreen_ipc_interface_code.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2023 Huawei Device 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. + */ \ No newline at end of file -- Gitee From 3cc1a7b081dc55e9be0a1c8c7c4db53afbbaeccc Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Sat, 13 May 2023 17:23:40 +0800 Subject: [PATCH 2/3] add header content Signed-off-by: hwzhangchuang --- common/include/dscreen_ipc_interface_code.h | 37 ++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/common/include/dscreen_ipc_interface_code.h b/common/include/dscreen_ipc_interface_code.h index b49308a9..74a50542 100644 --- a/common/include/dscreen_ipc_interface_code.h +++ b/common/include/dscreen_ipc_interface_code.h @@ -11,4 +11,39 @@ * 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. - */ \ No newline at end of file + */ + +#ifndef OHOS_DSCREEN_IPC_INTERFACE_CODE_H +#define OHOS_DSCREEN_IPC_INTERFACE_CODE_H + +#include + +namespace OHOS { +namespace DistributedHardware { + /* SAID: 4807*/ + enum class IDScreenSourceInterfaceCode : uint32_t { + INIT_SOURCE = 0, + RELEASE_SOURCE = 1, + REGISTER_DISTRIBUTED_HARDWARE = 2, + UNREGISTER_DISTRIBUTED_HARDWARE = 3, + CONFIG_DISTRIBUTED_HARDWARE = 4, + DSCREEN_NOTIFY = 5, + }; + + /* SAID: 4808*/ + enum class IDScreenSinkInterfaceCode : uint32_t { + INIT_SINK = 0, + RELEASE_SINK = 1, + SUBSCRIBE_DISTRIBUTED_HARDWARE = 2, + UNSUBSCRIBE_DISTRIBUTED_HARDWARE = 3, + DSCREEN_NOTIFY = 4, + }; + + /* SAID: 4807*/ + enum class IDScreenSourceCBInterfaceCode : uint32_t { + NOTIFY_REG_RESULT = 0, + NOTIFY_UNREG_RESULT = 1, + }; +} // namespace DistributedHardware +} // namespace OHOS +#endif \ No newline at end of file -- Gitee From 9b8ddfec76d149f3bab336efbe0ba9b0edc1fa44 Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Sat, 13 May 2023 17:35:02 +0800 Subject: [PATCH 3/3] modify format Signed-off-by: hwzhangchuang --- common/include/dscreen_ipc_interface_code.h | 44 ++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/common/include/dscreen_ipc_interface_code.h b/common/include/dscreen_ipc_interface_code.h index 74a50542..d7d3901b 100644 --- a/common/include/dscreen_ipc_interface_code.h +++ b/common/include/dscreen_ipc_interface_code.h @@ -20,30 +20,30 @@ namespace OHOS { namespace DistributedHardware { - /* SAID: 4807*/ - enum class IDScreenSourceInterfaceCode : uint32_t { - INIT_SOURCE = 0, - RELEASE_SOURCE = 1, - REGISTER_DISTRIBUTED_HARDWARE = 2, - UNREGISTER_DISTRIBUTED_HARDWARE = 3, - CONFIG_DISTRIBUTED_HARDWARE = 4, - DSCREEN_NOTIFY = 5, - }; +/* SAID: 4807*/ +enum class IDScreenSourceInterfaceCode : uint32_t { + INIT_SOURCE = 0, + RELEASE_SOURCE = 1, + REGISTER_DISTRIBUTED_HARDWARE = 2, + UNREGISTER_DISTRIBUTED_HARDWARE = 3, + CONFIG_DISTRIBUTED_HARDWARE = 4, + DSCREEN_NOTIFY = 5, +}; - /* SAID: 4808*/ - enum class IDScreenSinkInterfaceCode : uint32_t { - INIT_SINK = 0, - RELEASE_SINK = 1, - SUBSCRIBE_DISTRIBUTED_HARDWARE = 2, - UNSUBSCRIBE_DISTRIBUTED_HARDWARE = 3, - DSCREEN_NOTIFY = 4, - }; +/* SAID: 4808*/ +enum class IDScreenSinkInterfaceCode : uint32_t { + INIT_SINK = 0, + RELEASE_SINK = 1, + SUBSCRIBE_DISTRIBUTED_HARDWARE = 2, + UNSUBSCRIBE_DISTRIBUTED_HARDWARE = 3, + DSCREEN_NOTIFY = 4, +}; - /* SAID: 4807*/ - enum class IDScreenSourceCBInterfaceCode : uint32_t { - NOTIFY_REG_RESULT = 0, - NOTIFY_UNREG_RESULT = 1, - }; +/* SAID: 4807*/ +enum class IDScreenSourceCBInterfaceCode : uint32_t { + NOTIFY_REG_RESULT = 0, + NOTIFY_UNREG_RESULT = 1, +}; } // namespace DistributedHardware } // namespace OHOS #endif \ No newline at end of file -- Gitee