-void connection_del(connection_t *c)
-{
- cp();
-
- avl_delete(connection_tree, c);
-}
-
-void dump_connections(void)
-{
- avl_node_t *node;
- connection_t *c;
-
- cp();
-
- logger(LOG_DEBUG, _("Connections:"));
-
- for(node = connection_tree->head; node; node = node->next) {
- c = (connection_t *) node->data;
- logger(LOG_DEBUG, _(" %s at %s options %lx socket %d status %04x"),
- c->name, c->hostname, c->options, c->socket, c->status);
- }
-
- logger(LOG_DEBUG, _("End of connections."));
-}
-
-bool read_connection_config(connection_t *c)
-{
- char *fname;
- int x;
-
- cp();
-
- asprintf(&fname, "%s/hosts/%s", confbase, c->name);
- x = read_config_file(c->config_tree, fname);
- free(fname);
-
- return x == 0;
+void connection_del(connection_t *c) {
+ list_delete(mesh->connections, c);