3 * Copyright 2006 Free Software Foundation, Inc.
5 * This file is part of GNU Radio
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef INCLUDED_MB_CONNECTION_H
23 #define INCLUDED_MB_CONNECTION_H
25 #include <mb_endpoint.h>
29 * \brief Representation of a connection
31 struct mb_connection {
34 mb_connection(const mb_endpoint &ep0, const mb_endpoint &ep1){
40 typedef std::list<mb_connection>::iterator mb_conn_iter;
41 typedef std::list<mb_connection>::const_iterator mb_conn_const_iter;
44 * \brief data structure that keeps track of connections
47 std::list<mb_connection> d_connections;
51 lookup_conn_by_name(const std::string &component_name,
52 const std::string &port_name,
53 mb_conn_iter *it, int *which_ep);
56 lookup_conn_by_port(const mb_port *port,
57 mb_conn_iter *it, int *which_ep);
60 create_conn(const mb_endpoint &ep0, const mb_endpoint &ep1);
64 disconnect(const std::string &comp_name1, const std::string &port_name1,
65 const std::string &comp_name2, const std::string &port_name2);
68 disconnect_component(const std::string component_name);
78 #endif /* INCLUDED_MB_CONNECTION_H */