Rename description packages to replace "scpd" with "srvdesc".

This commit is contained in:
John Beisley
2022-05-27 07:00:09 +01:00
parent 2145a9306f
commit b2bea13720
3 changed files with 14 additions and 13 deletions

View File

@ -9,8 +9,8 @@ import (
"strings"
"github.com/huin/goupnp/v2alpha/cmd/goupnp2dcpgen/zipread"
"github.com/huin/goupnp/v2alpha/description/scpd"
"github.com/huin/goupnp/v2alpha/description/xmlscpd"
"github.com/huin/goupnp/v2alpha/description/srvdesc"
"github.com/huin/goupnp/v2alpha/description/xmlsrvdesc"
)
var (
@ -89,7 +89,7 @@ func processService(
d := xml.NewDecoder(f)
xmlSCPD := &xmlscpd.SCPD{}
xmlSCPD := &xmlsrvdesc.SCPD{}
if err := d.Decode(xmlSCPD); err != nil {
return err
}
@ -108,7 +108,7 @@ func processService(
}
}
_, err = scpd.FromXML(xmlSCPD)
_, err = srvdesc.FromXML(xmlSCPD)
if err != nil {
return err
}