Added printing toolkit name to at_spi2_tool 79/235179/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200610.155200 accepted/tizen/5.5/unified/wearable/hotfix/20201027.103050 submit/tizen_5.5/20200608.020111 submit/tizen_5.5/20200609.021951 submit/tizen_5.5_wearable_hotfix/20201026.184306
authorMaria Bialota <m.bialota@samsung.com>
Tue, 26 May 2020 16:11:38 +0000 (18:11 +0200)
committerLukasz Oleksak <l.oleksak@samsung.com>
Tue, 2 Jun 2020 10:31:55 +0000 (10:31 +0000)
Change-Id: Ia8ab65788ff932a9371dfdf8a941693b2ac8b552
(cherry picked from commit f8171e414d06924538a11fbddb0ac5d7227f98a6)

test/at_spi2_tool.c

index f10778c..e1e9fc8 100644 (file)
@@ -313,6 +313,8 @@ static char *_get_info(AtspiAccessible *node, int length_limit, bool *attributes
        unsigned long long eo_ptr = 0;
        sscanf(path, "%llu", &eo_ptr);
 
+       char *toolkit = atspi_accessible_get_toolkit_name(node, NULL);
+
        char *attributes = _get_attributes(node, length_limit, attributes_are_too_long);
        Box_Size *box_size = _get_box_size(node);
        char *states = _get_states(node, length_limit);
@@ -330,9 +332,10 @@ static char *_get_info(AtspiAccessible *node, int length_limit, bool *attributes
        }
 
        char result[SAFE_BUFFER_SIZE];
-       int ret = snprintf(result, SAFE_BUFFER_SIZE, "[[%s(%p)],[%s],[%s],[%s,%s,%s,%s],[%s],[%s],[%s]]",
+       int ret = snprintf(result, SAFE_BUFFER_SIZE, "[[%s(%p)],[%s],[toolkit=%s],[%s],[%s,%s,%s,%s],[%s],[%s],[%s]]",
                                                unique_id, (uintptr_t)eo_ptr,
                                                node_role_name,
+                                               toolkit,
                                                attributes,
                                                box_size ? box_size->x : "nil",
                                                box_size ? box_size->y : "nil",
@@ -355,6 +358,7 @@ static char *_get_info(AtspiAccessible *node, int length_limit, bool *attributes
        free(node_role_name);
        free(unique_id);
        free(path);
+       free(toolkit);
        free(attributes);
        if (box_size) {
                free(box_size->width);