Commit Graph

43 Commits

Author SHA1 Message Date
00a824fe48 feat: generate code for openhome 2022-11-01 20:03:30 +01:00
1a2c6ad5b2 refactor: rename go module 2022-11-01 20:02:13 +01:00
John Beisley
69bbc8fbe6 Remove unused hack function. 2022-03-24 19:46:39 +00:00
John Beisley
104873f511 Move wanFirewallURNFix definition out to package. 2022-03-24 19:46:39 +00:00
John Beisley
f320faf4bc Consolidate V1 SOAP type data into the SOAP package. 2022-03-24 19:46:39 +00:00
John Beisley
a37fadc3ba Factor code template into a file.
This allows code regeneration without rebuilding the generator binary.
2022-03-24 19:46:39 +00:00
mhhcbon
9af4afce08 add support for Open Connectivity Foundation DCPs 2022-03-22 18:18:01 +00:00
John Beisley
ca81a64b42 Reorder items in generated source files.
Ideally they would always have been sorted as such, but this seems more
critical in migrating from one service definition to another where the ordering might
change.
2022-03-13 09:02:29 +00:00
John Beisley
5a0d4bd7ee Add *Ctx methods for calling SOAP methods.
Fixes #42.
2021-07-11 14:53:32 +01:00
John Beisley
9eb592fa19 Minor fixes to goupnpdcpgen.
Most importantly fix to run on Windows.
2021-07-11 14:44:55 +01:00
John Beisley
0c863b7f0d Add a command to display all SSDP discoveries on local network. 2020-05-16 11:58:37 +01:00
John Beisley
271feae8ac Fix minor bug in how errors are displayed in codegen. 2020-05-10 09:48:28 +01:00
John Beisley
656e61dfad Switch to generate code with go generate. 2018-10-13 15:04:17 +01:00
John Beisley
71cfb6bbcb Add correct spelling for RequestSCPD, mentioned in issue #23. 2018-03-04 21:55:55 +00:00
John Beisley
074be02a65 Make the SSDP registry minimally useful. 2015-06-07 12:28:34 +01:00
Jeff
f6cef970a4 update internetgateway1 example to build on go1.4
the Service field on the ServiceClient is already *goupnp.Service, so taking the address makes it a **goupnp.Service which no longer will dereference to call methods on type *goupnp.Service like String and RequestSCDP.
2014-12-11 12:44:49 -07:00
John Beisley
5cd41e8371 Correct HTTPU serving to not require an interface for multicast. 2014-06-08 09:10:34 +01:00
John Beisley
dcc00c8629 Initial work for receiving HTTPU broadcasts. 2014-06-07 23:40:07 +01:00
John Beisley
9ba1a7725b Use gotasks for specification-generated source code. 2014-06-07 20:07:54 +01:00
John Beisley
65abff0690 Add example of using internetgateway1. 2014-06-06 22:19:17 +01:00
John Beisley
3a950ed088 Remove GofmtWriteCloser.
Now uses common github.com/huin/goutil/codegen version.
2014-01-12 01:10:05 +00:00
John Beisley
a8a8987980 Use nil interface{} instead of struct{} for empty requests/responses.
The XML encoder doesn't like receiving struct{}.
2014-01-06 19:47:57 +00:00
John Beisley
6856f9618d Add example code, and improve the facing docs slightly. 2013-12-31 20:49:32 +00:00
John Beisley
1f02d6bce3 Add New*Clients functions to the generated code to simplify their use. 2013-12-31 20:01:17 +00:00
John Beisley
03572e5988 Small fixes and removals, update discoverigd.go. 2013-12-31 18:36:26 +00:00
John Beisley
587c68769d Remove redundant information from action docs. 2013-12-31 18:06:34 +00:00
John Beisley
d4355376d7 More minor generated documentation improvements. 2013-12-31 18:04:59 +00:00
John Beisley
92b4aac9bb Attempt to tidy generated documentation. 2013-12-31 17:52:43 +00:00
John Beisley
38405bcf8d Include gofmt in the code generation process. 2013-12-31 17:16:47 +00:00
John Beisley
50cfea8d4f Inline request/response structures. 2013-12-31 17:06:15 +00:00
John Beisley
d2cd2978d9 Use data type (un)marshal in generated DCP code. 2013-12-31 16:56:20 +00:00
John Beisley
ea06094dea Attempt to add argument/return value documentation. 2013-10-06 23:16:25 +01:00
John Beisley
5ff1b1c840 Fix syntax error in generated code. 2013-10-06 22:45:11 +01:00
John Beisley
e48908bf4c Fix types to generated code. 2013-10-06 22:39:16 +01:00
John Beisley
df9c033d1a Initial work on auto-generating SOAP clients for UPnP services. 2013-10-06 22:06:47 +01:00
John Beisley
914072fdd8 Separate lower-level API into separate packages. 2013-10-06 13:23:11 +01:00
John Beisley
0b82043f96 Tidy up the SOAP components a bit. 2013-10-06 12:57:26 +01:00
John Beisley
80bd2aa934 Helper functions on devices, minor fixes. 2013-10-03 20:38:23 +01:00
John Beisley
61577bd15b Seems that searching for a service also works. 2013-09-29 16:15:35 +01:00
John Beisley
33980ebacf Fix bug introduced by removing pointer indirection. 2013-09-29 16:09:10 +01:00
John Beisley
69d76cd5e4 Remove some pointer indirections in device.go. 2013-09-29 15:59:53 +01:00
John Beisley
1b8d66b887 Add SOAP action support. 2013-09-29 11:23:10 +01:00
John Beisley
fdb21f966f Add example of using the library to discover an InternetGatewayDevice. 2013-09-28 17:58:28 +01:00