Added printing toolkit name to at_spi2_tool 17/235017/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.104449 accepted/tizen/6.0/unified/hotfix/20201103.000427 accepted/tizen/unified/20200608.214806 submit/tizen/20200608.010949 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_6.0.m2_release
authorMaria Bialota <m.bialota@samsung.com>
Tue, 26 May 2020 16:11:38 +0000 (18:11 +0200)
committerMaria Bialota <m.bialota@samsung.com>
Mon, 1 Jun 2020 15:42:16 +0000 (17:42 +0200)
Change-Id: Ia8ab65788ff932a9371dfdf8a941693b2ac8b552

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);