From b6486899c8f0cbce8d125522e8ac437b46e76893 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Fri, 14 Jun 2024 15:26:26 +0900 Subject: [PATCH] plugin-api: deviced: Add touchled resource type and attribute 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 --- ...yscommon-plugin-deviced-common-interface.h | 1 + ...common-plugin-deviced-touchled-interface.h | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/plugin-api/deviced/include/system/syscommon-plugin-deviced-touchled-interface.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 b8b8bbb..cf4636b 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 @@ -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 index 0000000..4e43cca --- /dev/null +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-touchled-interface.h @@ -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 +#include + +#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__ -- 2.34.1