Revision d2888160 usrp2/host/lib/usrp2.cc
| b/usrp2/host/lib/usrp2.cc | ||
|---|---|---|
| 38 | 38 |
struct usrp_table_entry {
|
| 39 | 39 |
// inteface + normalized mac addr ("eth0:01:23:45:67:89:ab")
|
| 40 | 40 |
std::string key; |
| 41 |
boost::weak_ptr<usrp2::usrp2> value;
|
|
| 41 |
boost::weak_ptr<usrp2> value; |
|
| 42 | 42 |
|
| 43 |
usrp_table_entry(const std::string &_key, boost::weak_ptr<usrp2::usrp2> _value)
|
|
| 43 |
usrp_table_entry(const std::string &_key, boost::weak_ptr<usrp2> _value) |
|
| 44 | 44 |
: key(_key), value(_value) {}
|
| 45 | 45 |
}; |
| 46 | 46 |
|
| ... | ... | |
| 70 | 70 |
// We don't have the USRP2 we're looking for |
| 71 | 71 |
|
| 72 | 72 |
// create a new one and stick it in the table. |
| 73 |
usrp2::sptr r(new usrp2::usrp2(ifc, pr, rx_bufsize));
|
|
| 73 |
usrp2::sptr r(new usrp2(ifc, pr, rx_bufsize)); |
|
| 74 | 74 |
usrp_table_entry t(key, r); |
| 75 | 75 |
s_table.push_back(t); |
| 76 | 76 |
|
Also available in: Unified diff