• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/

Lines Matching refs:tree

2 /* dbus-object-tree.c  DBusObjectTree (internals of DBusConnection)
25 #include "dbus-object-tree.h"
37 * @brief DBusObjectTree is used by DBusConnection to track the object tree
60 DBusConnection *connection; /**< Connection this tree belongs to */
62 DBusObjectSubtree *root; /**< Root of the tree ("/" node) */
85 * Creates a new object tree, representing a mapping from paths
88 * @param connection the connection this tree belongs to
89 * @returns the new tree or #NULL if no memory
94 DBusObjectTree *tree;
101 tree = dbus_new0 (DBusObjectTree, 1);
102 if (tree == NULL)
105 tree->refcount = 1;
106 tree->connection = connection;
107 tree->root = _dbus_object_subtree_new ("/", NULL, NULL);
108 if (tree->root == NULL)
110 tree->root->invoke_as_fallback = TRUE;
112 return tree;
115 if (tree)
117 dbus_free (tree);
125 * @param tree the object tree
126 * @returns the object tree
129 _dbus_object_tree_ref (DBusObjectTree *tree)
131 _dbus_assert (tree->refcount > 0);
133 tree->refcount += 1;
135 return tree;
140 * @param tree the object tree
143 _dbus_object_tree_unref (DBusObjectTree *tree)
145 _dbus_assert (tree->refcount > 0);
147 tree->refcount -= 1;
149 if (tree->refcount == 0)
151 _dbus_object_tree_free_all_unlocked (tree);
153 dbus_free (tree);
254 _dbus_verbose (" no match found, current tree %s, create_if_not_found = %d\n",
323 find_subtree (DBusObjectTree *tree,
333 subtree = find_subtree_recurse (tree->root, path, FALSE, index_in_parent, NULL);
342 lookup_subtree (DBusObjectTree *tree,
348 return find_subtree_recurse (tree->root, path, FALSE, NULL, NULL);
352 find_handler (DBusObjectTree *tree,
363 return find_subtree_recurse (tree->root, path, FALSE, NULL, exact_match);
367 ensure_subtree (DBusObjectTree *tree,
373 return find_subtree_recurse (tree->root, path, TRUE, NULL, NULL);
379 * Registers a new subtree in the global object tree.
381 * @param tree the global object tree
391 _dbus_object_tree_register (DBusObjectTree *tree,
400 _dbus_assert (tree != NULL);
404 subtree = ensure_subtree (tree, path);
440 * @param tree the global object tree
444 _dbus_object_tree_unregister_and_unlock (DBusObjectTree *tree,
458 subtree = find_subtree (tree, path, &i);
503 connection = tree->connection;
557 * Free all the handlers in the tree. Lock on tree's connection
560 * @param tree the object tree
563 _dbus_object_tree_free_all_unlocked (DBusObjectTree *tree)
565 if (tree->root)
566 free_subtree_recurse (tree->connection,
567 tree->root);
568 tree->root = NULL;
572 _dbus_object_tree_list_registered_unlocked (DBusObjectTree *tree,
584 subtree = lookup_subtree (tree, parent_path);
616 handle_default_introspect_and_unlock (DBusObjectTree *tree,
642 if (tree->connection)
646 _dbus_connection_unlock (tree->connection);
657 if (tree->connection)
661 _dbus_connection_unlock (tree->connection);
670 if (!_dbus_object_tree_list_registered_unlocked (tree, path, &children))
702 if (tree->connection)
707 if (!_dbus_connection_send_and_unlock (tree->connection, reply, NULL))
715 if (tree->connection)
721 _dbus_connection_unlock (tree->connection);
742 * @param tree the global object tree
747 _dbus_object_tree_dispatch_and_unlock (DBusObjectTree *tree,
766 if (tree->connection)
770 _dbus_connection_unlock (tree->connection);
781 if (tree->connection)
785 _dbus_connection_unlock (tree->connection);
793 subtree = find_handler (tree, (const char**) path, &exact_match);
821 _dbus_verbose ("%d handlers in the path tree for this message\n",
850 if (tree->connection)
854 _dbus_connection_unlock (tree->connection);
862 result = (* message_function) (tree->connection,
867 if (tree->connection)
869 _dbus_connection_lock (tree->connection);
884 result = handle_default_introspect_and_unlock (tree, message,
890 if (tree->connection)
894 _dbus_connection_unlock (tree->connection);
914 * @param tree the global object tree
919 _dbus_object_tree_get_user_data_unlocked (DBusObjectTree *tree,
925 _dbus_assert (tree != NULL);
929 subtree = find_handler (tree, (const char**) path, &exact_match);
1044 * @param tree the object tree
1050 _dbus_object_tree_list_registered_and_unlock (DBusObjectTree *tree,
1056 result = _dbus_object_tree_list_registered_unlocked (tree,
1061 if (tree->connection)
1065 _dbus_connection_unlock (tree->connection);
1299 spew_tree (DBusObjectTree *tree)
1301 spew_subtree_recurse (tree->root, 0);
1339 do_register (DBusObjectTree *tree,
1353 if (!_dbus_object_tree_register (tree, fallback, path,
1359 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path) ==
1366 do_test_dispatch (DBusObjectTree *tree,
1398 result = _dbus_object_tree_dispatch_and_unlock (tree, message, NULL);
1522 DBusObjectTree *tree;
1530 tree = NULL;
1532 tree = _dbus_object_tree_new (NULL);
1533 if (tree == NULL)
1536 if (!do_register (tree, path0, TRUE, 0, tree_test_data))
1539 _dbus_assert (find_subtree (tree, path0, NULL));
1540 _dbus_assert (!find_subtree (tree, path1, NULL));
1541 _dbus_assert (!find_subtree (tree, path2, NULL));
1542 _dbus_assert (!find_subtree (tree, path3, NULL));
1543 _dbus_assert (!find_subtree (tree, path4, NULL));
1544 _dbus_assert (!find_subtree (tree, path5, NULL));
1545 _dbus_assert (!find_subtree (tree, path6, NULL));
1546 _dbus_assert (!find_subtree (tree, path7, NULL));
1547 _dbus_assert (!find_subtree (tree, path8, NULL));
1549 _dbus_assert (find_handler (tree, path0, &exact_match) && exact_match);
1550 _dbus_assert (find_handler (tree, path1, &exact_match) == tree->root && !exact_match);
1551 _dbus_assert (find_handler (tree, path2, &exact_match) == tree->root && !exact_match);
1552 _dbus_assert (find_handler (tree, path3, &exact_match) == tree->root && !exact_match);
1553 _dbus_assert (find_handler (tree, path4, &exact_match) == tree->root && !exact_match);
1554 _dbus_assert (find_handler (tree, path5, &exact_match) == tree->root && !exact_match);
1555 _dbus_assert (find_handler (tree, path6, &exact_match) == tree->root && !exact_match);
1556 _dbus_assert (find_handler (tree, path7, &exact_match) == tree->root && !exact_match);
1557 _dbus_assert (find_handler (tree, path8, &exact_match) == tree->root && !exact_match);
1559 if (!do_register (tree, path1, TRUE, 1, tree_test_data))
1562 _dbus_assert (find_subtree (tree, path0, NULL));
1563 _dbus_assert (find_subtree (tree, path1, NULL));
1564 _dbus_assert (!find_subtree (tree, path2, NULL));
1565 _dbus_assert (!find_subtree (tree, path3, NULL));
1566 _dbus_assert (!find_subtree (tree, path4, NULL));
1567 _dbus_assert (!find_subtree (tree, path5, NULL));
1568 _dbus_assert (!find_subtree (tree, path6, NULL));
1569 _dbus_assert (!find_subtree (tree, path7, NULL));
1570 _dbus_assert (!find_subtree (tree, path8, NULL));
1572 _dbus_assert (find_handler (tree, path0, &exact_match) && exact_match);
1573 _dbus_assert (find_handler (tree, path1, &exact_match) && exact_match);
1574 _dbus_assert (find_handler (tree, path2, &exact_match) && !exact_match);
1575 _dbus_assert (find_handler (tree, path3, &exact_match) && !exact_match);
1576 _dbus_assert (find_handler (tree, path4, &exact_match) && !exact_match);
1577 _dbus_assert (find_handler (tree, path5, &exact_match) == tree->root && !exact_match);
1578 _dbus_assert (find_handler (tree, path6, &exact_match) == tree->root && !exact_match);
1579 _dbus_assert (find_handler (tree, path7, &exact_match) == tree->root && !exact_match);
1580 _dbus_assert (find_handler (tree, path8, &exact_match) == tree->root && !exact_match);
1582 if (!do_register (tree, path2, TRUE, 2, tree_test_data))
1585 _dbus_assert (find_subtree (tree, path1, NULL));
1586 _dbus_assert (find_subtree (tree, path2, NULL));
1587 _dbus_assert (!find_subtree (tree, path3, NULL));
1588 _dbus_assert (!find_subtree (tree, path4, NULL));
1589 _dbus_assert (!find_subtree (tree, path5, NULL));
1590 _dbus_assert (!find_subtree (tree, path6, NULL));
1591 _dbus_assert (!find_subtree (tree, path7, NULL));
1592 _dbus_assert (!find_subtree (tree, path8, NULL));
1594 if (!do_register (tree, path3, TRUE, 3, tree_test_data))
1597 _dbus_assert (find_subtree (tree, path0, NULL));
1598 _dbus_assert (find_subtree (tree, path1, NULL));
1599 _dbus_assert (find_subtree (tree, path2, NULL));
1600 _dbus_assert (find_subtree (tree, path3, NULL));
1601 _dbus_assert (!find_subtree (tree, path4, NULL));
1602 _dbus_assert (!find_subtree (tree, path5, NULL));
1603 _dbus_assert (!find_subtree (tree, path6, NULL));
1604 _dbus_assert (!find_subtree (tree, path7, NULL));
1605 _dbus_assert (!find_subtree (tree, path8, NULL));
1607 if (!do_register (tree, path4, TRUE, 4, tree_test_data))
1610 _dbus_assert (find_subtree (tree, path0, NULL));
1611 _dbus_assert (find_subtree (tree, path1, NULL));
1612 _dbus_assert (find_subtree (tree, path2, NULL));
1613 _dbus_assert (find_subtree (tree, path3, NULL));
1614 _dbus_assert (find_subtree (tree, path4, NULL));
1615 _dbus_assert (!find_subtree (tree, path5, NULL));
1616 _dbus_assert (!find_subtree (tree, path6, NULL));
1617 _dbus_assert (!find_subtree (tree, path7, NULL));
1618 _dbus_assert (!find_subtree (tree, path8, NULL));
1620 if (!do_register (tree, path5, TRUE, 5, tree_test_data))
1623 _dbus_assert (find_subtree (tree, path0, NULL));
1624 _dbus_assert (find_subtree (tree, path1, NULL));
1625 _dbus_assert (find_subtree (tree, path2, NULL));
1626 _dbus_assert (find_subtree (tree, path3, NULL));
1627 _dbus_assert (find_subtree (tree, path4, NULL));
1628 _dbus_assert (find_subtree (tree, path5, NULL));
1629 _dbus_assert (!find_subtree (tree, path6, NULL));
1630 _dbus_assert (!find_subtree (tree, path7, NULL));
1631 _dbus_assert (!find_subtree (tree, path8, NULL));
1633 _dbus_assert (find_handler (tree, path0, &exact_match) == tree->root && exact_match);
1634 _dbus_assert (find_handler (tree, path1, &exact_match) != tree->root && exact_match);
1635 _dbus_assert (find_handler (tree, path2, &exact_match) != tree->root && exact_match);
1636 _dbus_assert (find_handler (tree, path3, &exact_match) != tree->root && exact_match);
1637 _dbus_assert (find_handler (tree, path4, &exact_match) != tree->root && exact_match);
1638 _dbus_assert (find_handler (tree, path5, &exact_match) != tree->root && exact_match);
1639 _dbus_assert (find_handler (tree, path6, &exact_match) != tree->root && !exact_match);
1640 _dbus_assert (find_handler (tree, path7, &exact_match) != tree->root && !exact_match);
1641 _dbus_assert (find_handler (tree, path8, &exact_match) == tree->root && !exact_match);
1643 if (!do_register (tree, path6, TRUE, 6, tree_test_data))
1646 _dbus_assert (find_subtree (tree, path0, NULL));
1647 _dbus_assert (find_subtree (tree, path1, NULL));
1648 _dbus_assert (find_subtree (tree, path2, NULL));
1649 _dbus_assert (find_subtree (tree, path3, NULL));
1650 _dbus_assert (find_subtree (tree, path4, NULL));
1651 _dbus_assert (find_subtree (tree, path5, NULL));
1652 _dbus_assert (find_subtree (tree, path6, NULL));
1653 _dbus_assert (!find_subtree (tree, path7, NULL));
1654 _dbus_assert (!find_subtree (tree, path8, NULL));
1656 if (!do_register (tree, path7, TRUE, 7, tree_test_data))
1659 _dbus_assert (find_subtree (tree, path0, NULL));
1660 _dbus_assert (find_subtree (tree, path1, NULL));
1661 _dbus_assert (find_subtree (tree, path2, NULL));
1662 _dbus_assert (find_subtree (tree, path3, NULL));
1663 _dbus_assert (find_subtree (tree, path4, NULL));
1664 _dbus_assert (find_subtree (tree, path5, NULL));
1665 _dbus_assert (find_subtree (tree, path6, NULL));
1666 _dbus_assert (find_subtree (tree, path7, NULL));
1667 _dbus_assert (!find_subtree (tree, path8, NULL));
1669 if (!do_register (tree, path8, TRUE, 8, tree_test_data))
1672 _dbus_assert (find_subtree (tree, path0, NULL));
1673 _dbus_assert (find_subtree (tree, path1, NULL));
1674 _dbus_assert (find_subtree (tree, path2, NULL));
1675 _dbus_assert (find_subtree (tree, path3, NULL));
1676 _dbus_assert (find_subtree (tree, path4, NULL));
1677 _dbus_assert (find_subtree (tree, path5, NULL));
1678 _dbus_assert (find_subtree (tree, path6, NULL));
1679 _dbus_assert (find_subtree (tree, path7, NULL));
1680 _dbus_assert (find_subtree (tree, path8, NULL));
1682 _dbus_assert (find_handler (tree, path0, &exact_match) == tree->root && exact_match);
1683 _dbus_assert (find_handler (tree, path1, &exact_match) != tree->root && exact_match);
1684 _dbus_assert (find_handler (tree, path2, &exact_match) != tree->root && exact_match);
1685 _dbus_assert (find_handler (tree, path3, &exact_match) != tree->root && exact_match);
1686 _dbus_assert (find_handler (tree, path4, &exact_match) != tree->root && exact_match);
1687 _dbus_assert (find_handler (tree, path5, &exact_match) != tree->root && exact_match);
1688 _dbus_assert (find_handler (tree, path6, &exact_match) != tree->root && exact_match);
1689 _dbus_assert (find_handler (tree, path7, &exact_match) != tree->root && exact_match);
1690 _dbus_assert (find_handler (tree, path8, &exact_match) != tree->root && exact_match);
1699 _dbus_object_tree_list_registered_unlocked (tree, path1, &child_entries);
1707 _dbus_object_tree_list_registered_unlocked (tree, path2, &child_entries);
1715 _dbus_object_tree_list_registered_unlocked (tree, path8, &child_entries);
1723 _dbus_object_tree_list_registered_unlocked (tree, root, &child_entries);
1732 /* Check that destroying tree calls unregister funcs */
1733 _dbus_object_tree_unref (tree);
1744 tree = _dbus_object_tree_new (NULL);
1745 if (tree == NULL)
1748 if (!do_register (tree, path0, TRUE, 0, tree_test_data))
1750 if (!do_register (tree, path1, TRUE, 1, tree_test_data))
1752 if (!do_register (tree, path2, TRUE, 2, tree_test_data))
1754 if (!do_register (tree, path3, TRUE, 3, tree_test_data))
1756 if (!do_register (tree, path4, TRUE, 4, tree_test_data))
1758 if (!do_register (tree, path5, TRUE, 5, tree_test_data))
1760 if (!do_register (tree, path6, TRUE, 6, tree_test_data))
1762 if (!do_register (tree, path7, TRUE, 7, tree_test_data))
1764 if (!do_register (tree, path8, TRUE, 8, tree_test_data))
1767 _dbus_object_tree_unregister_and_unlock (tree, path0);
1768 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path0) == NULL);
1770 _dbus_assert (!find_subtree (tree, path0, NULL));
1771 _dbus_assert (find_subtree (tree, path1, NULL));
1772 _dbus_assert (find_subtree (tree, path2, NULL));
1773 _dbus_assert (find_subtree (tree, path3, NULL));
1774 _dbus_assert (find_subtree (tree, path4, NULL));
1775 _dbus_assert (find_subtree (tree, path5, NULL));
1776 _dbus_assert (find_subtree (tree, path6, NULL));
1777 _dbus_assert (find_subtree (tree, path7, NULL));
1778 _dbus_assert (find_subtree (tree, path8, NULL));
1780 _dbus_object_tree_unregister_and_unlock (tree, path1);
1781 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path1) == NULL);
1783 _dbus_assert (!find_subtree (tree, path0, NULL));
1784 _dbus_assert (!find_subtree (tree, path1, NULL));
1785 _dbus_assert (find_subtree (tree, path2, NULL));
1786 _dbus_assert (find_subtree (tree, path3, NULL));
1787 _dbus_assert (find_subtree (tree, path4, NULL));
1788 _dbus_assert (find_subtree (tree, path5, NULL));
1789 _dbus_assert (find_subtree (tree, path6, NULL));
1790 _dbus_assert (find_subtree (tree, path7, NULL));
1791 _dbus_assert (find_subtree (tree, path8, NULL));
1793 _dbus_object_tree_unregister_and_unlock (tree, path2);
1794 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path2) == NULL);
1796 _dbus_assert (!find_subtree (tree, path0, NULL));
1797 _dbus_assert (!find_subtree (tree, path1, NULL));
1798 _dbus_assert (!find_subtree (tree, path2, NULL));
1799 _dbus_assert (find_subtree (tree, path3, NULL));
1800 _dbus_assert (find_subtree (tree, path4, NULL));
1801 _dbus_assert (find_subtree (tree, path5, NULL));
1802 _dbus_assert (find_subtree (tree, path6, NULL));
1803 _dbus_assert (find_subtree (tree, path7, NULL));
1804 _dbus_assert (find_subtree (tree, path8, NULL));
1806 _dbus_object_tree_unregister_and_unlock (tree, path3);
1807 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path3) == NULL);
1809 _dbus_assert (!find_subtree (tree, path0, NULL));
1810 _dbus_assert (!find_subtree (tree, path1, NULL));
1811 _dbus_assert (!find_subtree (tree, path2, NULL));
1812 _dbus_assert (!find_subtree (tree, path3, NULL));
1813 _dbus_assert (find_subtree (tree, path4, NULL));
1814 _dbus_assert (find_subtree (tree, path5, NULL));
1815 _dbus_assert (find_subtree (tree, path6, NULL));
1816 _dbus_assert (find_subtree (tree, path7, NULL));
1817 _dbus_assert (find_subtree (tree, path8, NULL));
1819 _dbus_object_tree_unregister_and_unlock (tree, path4);
1820 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path4) == NULL);
1822 _dbus_assert (!find_subtree (tree, path0, NULL));
1823 _dbus_assert (!find_subtree (tree, path1, NULL));
1824 _dbus_assert (!find_subtree (tree, path2, NULL));
1825 _dbus_assert (!find_subtree (tree, path3, NULL));
1826 _dbus_assert (!find_subtree (tree, path4, NULL));
1827 _dbus_assert (find_subtree (tree, path5, NULL));
1828 _dbus_assert (find_subtree (tree, path6, NULL));
1829 _dbus_assert (find_subtree (tree, path7, NULL));
1830 _dbus_assert (find_subtree (tree, path8, NULL));
1832 _dbus_object_tree_unregister_and_unlock (tree, path5);
1833 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path5) == NULL);
1835 _dbus_assert (!find_subtree (tree, path0, NULL));
1836 _dbus_assert (!find_subtree (tree, path1, NULL));
1837 _dbus_assert (!find_subtree (tree, path2, NULL));
1838 _dbus_assert (!find_subtree (tree, path3, NULL));
1839 _dbus_assert (!find_subtree (tree, path4, NULL));
1840 _dbus_assert (!find_subtree (tree, path5, NULL));
1841 _dbus_assert (find_subtree (tree, path6, NULL));
1842 _dbus_assert (find_subtree (tree, path7, NULL));
1843 _dbus_assert (find_subtree (tree, path8, NULL));
1845 _dbus_object_tree_unregister_and_unlock (tree, path6);
1846 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path6) == NULL);
1848 _dbus_assert (!find_subtree (tree, path0, NULL));
1849 _dbus_assert (!find_subtree (tree, path1, NULL));
1850 _dbus_assert (!find_subtree (tree, path2, NULL));
1851 _dbus_assert (!find_subtree (tree, path3, NULL));
1852 _dbus_assert (!find_subtree (tree, path4, NULL));
1853 _dbus_assert (!find_subtree (tree, path5, NULL));
1854 _dbus_assert (!find_subtree (tree, path6, NULL));
1855 _dbus_assert (find_subtree (tree, path7, NULL));
1856 _dbus_assert (find_subtree (tree, path8, NULL));
1858 _dbus_object_tree_unregister_and_unlock (tree, path7);
1859 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path7) == NULL);
1861 _dbus_assert (!find_subtree (tree, path0, NULL));
1862 _dbus_assert (!find_subtree (tree, path1, NULL));
1863 _dbus_assert (!find_subtree (tree, path2, NULL));
1864 _dbus_assert (!find_subtree (tree, path3, NULL));
1865 _dbus_assert (!find_subtree (tree, path4, NULL));
1866 _dbus_assert (!find_subtree (tree, path5, NULL));
1867 _dbus_assert (!find_subtree (tree, path6, NULL));
1868 _dbus_assert (!find_subtree (tree, path7, NULL));
1869 _dbus_assert (find_subtree (tree, path8, NULL));
1871 _dbus_object_tree_unregister_and_unlock (tree, path8);
1872 _dbus_assert (_dbus_object_tree_get_user_data_unlocked (tree, path8) == NULL);
1874 _dbus_assert (!find_subtree (tree, path0, NULL));
1875 _dbus_assert (!find_subtree (tree, path1, NULL));
1876 _dbus_assert (!find_subtree (tree, path2, NULL));
1877 _dbus_assert (!find_subtree (tree, path3, NULL));
1878 _dbus_assert (!find_subtree (tree, path4, NULL));
1879 _dbus_assert (!find_subtree (tree, path5, NULL));
1880 _dbus_assert (!find_subtree (tree, path6, NULL));
1881 _dbus_assert (!find_subtree (tree, path7, NULL));
1882 _dbus_assert (!find_subtree (tree, path8, NULL));
1894 if (!do_register (tree, path0, TRUE, 0, tree_test_data))
1896 if (!do_register (tree, path1, FALSE, 1, tree_test_data))
1898 if (!do_register (tree, path2, TRUE, 2, tree_test_data))
1900 if (!do_register (tree, path3, TRUE, 3, tree_test_data))
1902 if (!do_register (tree, path4, TRUE, 4, tree_test_data))
1904 if (!do_register (tree, path5, TRUE, 5, tree_test_data))
1906 if (!do_register (tree, path6, FALSE, 6, tree_test_data))
1908 if (!do_register (tree, path7, TRUE, 7, tree_test_data))
1910 if (!do_register (tree, path8, TRUE, 8, tree_test_data))
1914 spew_tree (tree);
1917 if (!do_test_dispatch (tree, path0, 0, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1919 if (!do_test_dispatch (tree, path1, 1, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1921 if (!do_test_dispatch (tree, path2, 2, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1923 if (!do_test_dispatch (tree, path3, 3, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1925 if (!do_test_dispatch (tree, path4, 4, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1927 if (!do_test_dispatch (tree, path5, 5, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1929 if (!do_test_dispatch (tree, path6, 6, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1931 if (!do_test_dispatch (tree, path7, 7, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1933 if (!do_test_dispatch (tree, path8, 8, tree_test_data, _DBUS_N_ELEMENTS (tree_test_data)))
1937 if (tree)
1940 _dbus_object_tree_ref (tree);
1941 _dbus_object_tree_unref (tree);
1942 _dbus_object_tree_unref (tree);
1956 _dbus_test_oom_handling ("object tree",