From: Changgyu Choi Date: Tue, 5 Jan 2021 06:31:04 +0000 (+0900) Subject: Add widget component info type X-Git-Tag: submit/tizen/20210113.010900~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58f5a612eb7de47a9d9baa321314958d9dd078a2;p=platform%2Fcore%2Fapi%2Fcomponent-manager.git Add widget component info type Change-Id: Ie61fa9161d8c83d4b3006b110c3b291a5084fb40 Signed-off-by: Changgyu Choi --- diff --git a/include/component_info.h b/include/component_info.h index 3706d81..66a004f 100644 --- a/include/component_info.h +++ b/include/component_info.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2019 - 2021 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,7 @@ typedef void *component_info_h; typedef enum { COMPONENT_INFO_COMPONENT_TYPE_FRAME, /**< Frame component */ COMPONENT_INFO_COMPONENT_TYPE_SERVICE, /**< Service component */ + COMPONENT_INFO_COMPONENT_TYPE_WIDGET, /**< Widget component (Since 6.5) */ } component_info_component_type_e; /** diff --git a/src/component_info.c b/src/component_info.c index 2bdc879..984ca7d 100644 --- a/src/component_info.c +++ b/src/component_info.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2019 - 2021 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -175,6 +175,8 @@ EXPORT_API int component_info_get_component_type(component_info_h handle, *type = COMPONENT_INFO_COMPONENT_TYPE_FRAME; else if (value && !strcmp(value, "service")) *type = COMPONENT_INFO_COMPONENT_TYPE_SERVICE; + else if (value && !strcmp(value, "widget")) + *type = COMPONENT_INFO_COMPONENT_TYPE_WIDGET; else return COMPONENT_MANAGER_ERROR_IO_ERROR;