|
|
@ -205,8 +205,8 @@ func discoverUPnP() Interface { |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// finds devices matching the given target and calls matcher for all
|
|
|
|
// discover finds devices matching the given target and calls matcher for
|
|
|
|
// advertised services of each device. The first non-nil service found
|
|
|
|
// all advertised services of each device. The first non-nil service found
|
|
|
|
// is sent into out. If no service matched, nil is sent.
|
|
|
|
// is sent into out. If no service matched, nil is sent.
|
|
|
|
func discover(out chan<- *upnp, target string, matcher func(goupnp.ServiceClient) *upnp) { |
|
|
|
func discover(out chan<- *upnp, target string, matcher func(goupnp.ServiceClient) *upnp) { |
|
|
|
devs, err := goupnp.DiscoverDevices(target) |
|
|
|
devs, err := goupnp.DiscoverDevices(target) |
|
|
|