plugin-api: deviced: Add touchled resource type and attribute 82/312782/3
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 14 Jun 2024 06:26:26 +0000 (15:26 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Fri, 14 Jun 2024 07:00:58 +0000 (16:00 +0900)
New attribute:
 - id: DEVICED_TOUCHLED_ATTR_INT_BACKLIGHT
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

To support touchled function usage from plugin-backend side,
touchled resource type is newly added.

Change-Id: I4753f35edd36bb0f276ea525818648bd43f655b9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/plugin-api/deviced/include/system/syscommon-plugin-deviced-common-interface.h
src/plugin-api/deviced/include/system/syscommon-plugin-deviced-touchled-interface.h [new file with mode: 0644]

index b8b8bbb462085bde86673665362bede14db1a0fd..cf4636b35990e4940b8d3a34eb2c3ee87f4ab909 100644 (file)
@@ -35,6 +35,7 @@ enum deviced_resource_type {
        DEVICED_RESOURCE_TYPE_DISPLAY,
        DEVICED_RESOURCE_TYPE_CORE,
        DEVICED_RESOURCE_TYPE_BATTERY,
+       DEVICED_RESOURCE_TYPE_TOUCHLED,
        DEVICED_RESOURCE_TYPE_END,
 };
 
diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-touchled-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-touchled-interface.h
new file mode 100644 (file)
index 0000000..4e43cca
--- /dev/null
@@ -0,0 +1,48 @@
+/**
+ * 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_TOUCHLED_INTERFACE_H__
+#define __SYSCOMMON_PLUGIN_DEVICED_TOUCHLED_INTERFACE_H__
+
+#include <stdbool.h>
+#include <glib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define DEVICED_TOUCHLED_ATTR_INT_BACKLIGHT            (1ULL << 0)
+
+enum syscommon_deviced_touchled_option_type {
+       SYSCOMMON_DEVICED_TOUCHLED_PRESS,
+       SYSCOMMON_DEVICED_TOUCHLED_RELEASE,
+       SYSCOMMON_DEVICED_TOUCHLED_DIRECT_ON,
+       SYSCOMMON_DEVICED_TOUCHLED_DIRECT_OFF,
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //__SYSCOMMON_PLUGIN_DEVICED_TOUCHLED_INTERFACE_H__