From 4553c4352cf7378a262b3257ddc75aa9d3c014f8 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Wed, 11 Oct 2023 16:39:27 +0900 Subject: [PATCH] plugin-api: deviced: Add header files for resource type 'core' Resource 'core' is virtual resource type that manages core attributes such as DEVICED_CORE_ATTR_INT_DELAYED_INIT_DONE that means whether the system session has finished startup. Change-Id: Ie5effc6d6362db97fe14cf12bf6f3765320c424e Signed-off-by: Youngjae Cho --- ...yscommon-plugin-deviced-common-interface.h | 1 + .../syscommon-plugin-deviced-core-interface.h | 38 +++++++++++++++++++ .../system/syscommon-plugin-deviced-core.h | 36 ++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core-interface.h create mode 100644 src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core.h diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h index 4e18d39..34ae94b 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h @@ -33,6 +33,7 @@ enum deviced_resource_type { DEVICED_RESOURCE_TYPE_UNKNOWN, DEVICED_RESOURCE_TYPE_POWER, DEVICED_RESOURCE_TYPE_DISPLAY, + DEVICED_RESOURCE_TYPE_CORE, DEVICED_RESOURCE_TYPE_END, }; diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core-interface.h new file mode 100644 index 0000000..ed0f762 --- /dev/null +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core-interface.h @@ -0,0 +1,38 @@ +/** + * MIT License + * + * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is furnished + * to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#ifndef __SYSCOMMON_PLUGIN_DEVICED_CORE_INTERFACE_H__ +#define __SYSCOMMON_PLUGIN_DEVICED_CORE_INTERFACE_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#define DEVICED_CORE_ATTR_INT_DELAYED_INIT_DONE (1ULL << 0) + +#ifdef __cplusplus +} +#endif + +#endif /*__SYSCOMMON_PLUGIN_DEVICED_CORE_INTERFACE_H__ */ diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core.h new file mode 100644 index 0000000..e333307 --- /dev/null +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core.h @@ -0,0 +1,36 @@ +/** + * MIT License + * + * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is furnished + * to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#ifndef __SYSCOMMON_PLUGIN_DEVICED_CORE_H__ +#define __SYSCOMMON_PLUGIN_DEVICED_CORE_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*__SYSCOMMON_PLUGIN_DEVICED_CORE_H__ */ -- 2.34.1