Add widget component info type 44/250844/4
authorChanggyu Choi <changyu.choi@samsung.com>
Tue, 5 Jan 2021 06:31:04 +0000 (15:31 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Tue, 5 Jan 2021 08:29:49 +0000 (17:29 +0900)
Change-Id: Ie61fa9161d8c83d4b3006b110c3b291a5084fb40
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
include/component_info.h
src/component_info.c

index 3706d8154ca9191cb985bef76272307fda39b11e..66a004fc52a9c1a968f1dfa3e35e2ba2d6fdb78f 100644 (file)
@@ -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;
 
 /**
index 2bdc87978521d137d422ce9927ff1cbfff050ae0..984ca7d6198ab3579408201b6685b6995948c1a3 100644 (file)
@@ -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;