/** * Callback: called when a node is added from the backend. * * Adds the node to the gui. */ static void nodes_gui_node_added(const struct nid *node_id) { gnet_node_info_t info; if (GUI_PROPERTY(gui_debug) >= 5) g_debug("%s(%s)", G_STRFUNC, nid_to_string(node_id)); guc_node_fill_info(node_id, &info); nodes_gui_add_node(&info); guc_node_clear_info(&info); }
/** * Callback: called when a node is added from the backend. * * Adds the node to the gui. */ static void nodes_gui_node_added(const struct nid *node_id) { gnet_node_info_t *info; if (GUI_PROPERTY(gui_debug) >= 5) g_debug("nodes_gui_node_added(%s)\n", nid_to_string(node_id)); info = guc_node_get_info(node_id); if (info) { nodes_gui_add_node(info); guc_node_free_info(info); } }