plugin-api: deviced: Add header files for resource type 'core' 87/299887/4
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 11 Oct 2023 07:39:27 +0000 (16:39 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 16 Oct 2023 07:43:37 +0000 (16:43 +0900)
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 <y0.cho@samsung.com>
src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h
src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core-interface.h [new file with mode: 0644]
src/plugin-api/deviced/include/system/syscommon-plugin-deviced-core.h [new file with mode: 0644]

index 4e18d39..34ae94b 100644 (file)
@@ -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 (file)
index 0000000..ed0f762
--- /dev/null
@@ -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 (file)
index 0000000..e333307
--- /dev/null
@@ -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__ */