| 124 | } |
| 125 | |
| 126 | static struct graph_node * |
| 127 | node_to_graph_node(struct graph *graph, struct node *node) |
| 128 | { |
| 129 | struct graph_node *graph_node; |
| 130 | |
| 131 | STAILQ_FOREACH(graph_node, &graph->node_list, next) |
| 132 | if (graph_node->node == node) |
| 133 | return graph_node; |
| 134 | |
| 135 | SET_ERR_JMP(ENODEV, fail, "Found isolated node %s", node->name); |
| 136 | fail: |
| 137 | return NULL; |
| 138 | } |
| 139 | |
| 140 | static int |
| 141 | graph_node_edges_add(struct graph *graph) |
no outgoing calls
no test coverage detected