feat: generate code for openhome

This commit is contained in:
2022-11-01 20:03:30 +01:00
parent 31f6bc38c2
commit 00a824fe48
33 changed files with 15297 additions and 106 deletions

View File

@@ -204,7 +204,6 @@ func (client *AVTransport1) GetDeviceCapabilities(InstanceID uint32) (PlayMedia
)
}
//
// Return values:
//
// * NrTracks: allowed value range: minimum=0
@@ -282,7 +281,6 @@ func (client *AVTransport1) GetMediaInfo(InstanceID uint32) (NrTracks uint32, Me
)
}
//
// Return values:
//
// * Track: allowed value range: minimum=0, step=1
@@ -356,7 +354,6 @@ func (client *AVTransport1) GetPositionInfo(InstanceID uint32) (Track uint32, Tr
)
}
//
// Return values:
//
// * CurrentTransportState: allowed values: STOPPED, PLAYING
@@ -414,7 +411,6 @@ func (client *AVTransport1) GetTransportInfo(InstanceID uint32) (CurrentTranspor
)
}
//
// Return values:
//
// * PlayMode: allowed values: NORMAL
@@ -1054,7 +1050,6 @@ func (client *AVTransport2) GetCurrentTransportActions(InstanceID uint32) (Actio
)
}
//
// Return values:
//
// * CurrentDRMState: allowed values: OK
@@ -1150,7 +1145,6 @@ func (client *AVTransport2) GetDeviceCapabilities(InstanceID uint32) (PlayMedia
)
}
//
// Return values:
//
// * NrTracks: allowed value range: minimum=0
@@ -1228,7 +1222,6 @@ func (client *AVTransport2) GetMediaInfo(InstanceID uint32) (NrTracks uint32, Me
)
}
//
// Return values:
//
// * CurrentType: allowed values: NO_MEDIA, TRACK_AWARE, TRACK_UNAWARE
@@ -1312,7 +1305,6 @@ func (client *AVTransport2) GetMediaInfo_Ext(InstanceID uint32) (CurrentType str
)
}
//
// Return values:
//
// * Track: allowed value range: minimum=0, step=1
@@ -1434,7 +1426,6 @@ func (client *AVTransport2) GetStateVariables(InstanceID uint32, StateVariableLi
)
}
//
// Return values:
//
// * CurrentTransportState: allowed values: STOPPED, PLAYING
@@ -1492,7 +1483,6 @@ func (client *AVTransport2) GetTransportInfo(InstanceID uint32) (CurrentTranspor
)
}
//
// Return values:
//
// * PlayMode: allowed values: NORMAL
@@ -2227,7 +2217,6 @@ func (client *ConnectionManager1) GetCurrentConnectionIDs() (ConnectionIDs strin
return client.GetCurrentConnectionIDsCtx(context.Background())
}
//
// Return values:
//
// * Direction: allowed values: Input, Output
@@ -2553,7 +2542,6 @@ func (client *ConnectionManager2) GetCurrentConnectionIDs() (ConnectionIDs strin
return client.GetCurrentConnectionIDsCtx(context.Background())
}
//
// Return values:
//
// * Direction: allowed values: Input, Output
@@ -3221,7 +3209,6 @@ func (client *ContentDirectory1) GetSystemUpdateID() (Id uint32, err error) {
return client.GetSystemUpdateIDCtx(context.Background())
}
//
// Return values:
//
// * TransferStatus: allowed values: COMPLETED, ERROR, IN_PROGRESS, STOPPED
@@ -4046,7 +4033,6 @@ func (client *ContentDirectory2) GetSystemUpdateID() (Id uint32, err error) {
return client.GetSystemUpdateIDCtx(context.Background())
}
//
// Return values:
//
// * TransferStatus: allowed values: COMPLETED, ERROR, IN_PROGRESS, STOPPED
@@ -5045,7 +5031,6 @@ func (client *ContentDirectory3) GetSystemUpdateID() (Id uint32, err error) {
return client.GetSystemUpdateIDCtx(context.Background())
}
//
// Return values:
//
// * TransferStatus: allowed values: COMPLETED, ERROR, IN_PROGRESS, STOPPED
@@ -5437,7 +5422,6 @@ func newRenderingControl1ClientsFromGenericClients(genericClients []goupnp.Servi
return clients
}
//
// Return values:
//
// * CurrentBlueVideoBlackLevel: allowed value range: minimum=0, step=1
@@ -5483,7 +5467,6 @@ func (client *RenderingControl1) GetBlueVideoBlackLevel(InstanceID uint32) (Curr
)
}
//
// Return values:
//
// * CurrentBlueVideoGain: allowed value range: minimum=0, step=1
@@ -5529,7 +5512,6 @@ func (client *RenderingControl1) GetBlueVideoGain(InstanceID uint32) (CurrentBlu
)
}
//
// Return values:
//
// * CurrentBrightness: allowed value range: minimum=0, step=1
@@ -5575,7 +5557,6 @@ func (client *RenderingControl1) GetBrightness(InstanceID uint32) (CurrentBright
)
}
//
// Return values:
//
// * CurrentColorTemperature: allowed value range: minimum=0, step=1
@@ -5621,7 +5602,6 @@ func (client *RenderingControl1) GetColorTemperature(InstanceID uint32) (Current
)
}
//
// Return values:
//
// * CurrentContrast: allowed value range: minimum=0, step=1
@@ -5667,7 +5647,6 @@ func (client *RenderingControl1) GetContrast(InstanceID uint32) (CurrentContrast
)
}
//
// Return values:
//
// * CurrentGreenVideoBlackLevel: allowed value range: minimum=0, step=1
@@ -5713,7 +5692,6 @@ func (client *RenderingControl1) GetGreenVideoBlackLevel(InstanceID uint32) (Cur
)
}
//
// Return values:
//
// * CurrentGreenVideoGain: allowed value range: minimum=0, step=1
@@ -5759,7 +5737,6 @@ func (client *RenderingControl1) GetGreenVideoGain(InstanceID uint32) (CurrentGr
)
}
//
// Return values:
//
// * CurrentHorizontalKeystone: allowed value range: step=1
@@ -5911,7 +5888,6 @@ func (client *RenderingControl1) GetMute(InstanceID uint32, Channel string) (Cur
)
}
//
// Return values:
//
// * CurrentRedVideoBlackLevel: allowed value range: minimum=0, step=1
@@ -5999,7 +5975,6 @@ func (client *RenderingControl1) GetRedVideoGain(InstanceID uint32) (CurrentRedV
)
}
//
// Return values:
//
// * CurrentSharpness: allowed value range: minimum=0, step=1
@@ -6045,7 +6020,6 @@ func (client *RenderingControl1) GetSharpness(InstanceID uint32) (CurrentSharpne
)
}
//
// Return values:
//
// * CurrentVerticalKeystone: allowed value range: step=1
@@ -6096,7 +6070,6 @@ func (client *RenderingControl1) GetVerticalKeystone(InstanceID uint32) (Current
//
// * Channel: allowed values: Master
//
// Return values:
//
// * CurrentVolume: allowed value range: minimum=0, step=1
@@ -7209,7 +7182,6 @@ func newRenderingControl2ClientsFromGenericClients(genericClients []goupnp.Servi
return clients
}
//
// Return values:
//
// * CurrentBlueVideoBlackLevel: allowed value range: minimum=0, step=1
@@ -7255,7 +7227,6 @@ func (client *RenderingControl2) GetBlueVideoBlackLevel(InstanceID uint32) (Curr
)
}
//
// Return values:
//
// * CurrentBlueVideoGain: allowed value range: minimum=0, step=1
@@ -7301,7 +7272,6 @@ func (client *RenderingControl2) GetBlueVideoGain(InstanceID uint32) (CurrentBlu
)
}
//
// Return values:
//
// * CurrentBrightness: allowed value range: minimum=0, step=1
@@ -7347,7 +7317,6 @@ func (client *RenderingControl2) GetBrightness(InstanceID uint32) (CurrentBright
)
}
//
// Return values:
//
// * CurrentColorTemperature: allowed value range: minimum=0, step=1
@@ -7393,7 +7362,6 @@ func (client *RenderingControl2) GetColorTemperature(InstanceID uint32) (Current
)
}
//
// Return values:
//
// * CurrentContrast: allowed value range: minimum=0, step=1
@@ -7439,7 +7407,6 @@ func (client *RenderingControl2) GetContrast(InstanceID uint32) (CurrentContrast
)
}
//
// Return values:
//
// * CurrentGreenVideoBlackLevel: allowed value range: minimum=0, step=1
@@ -7485,7 +7452,6 @@ func (client *RenderingControl2) GetGreenVideoBlackLevel(InstanceID uint32) (Cur
)
}
//
// Return values:
//
// * CurrentGreenVideoGain: allowed value range: minimum=0, step=1
@@ -7531,7 +7497,6 @@ func (client *RenderingControl2) GetGreenVideoGain(InstanceID uint32) (CurrentGr
)
}
//
// Return values:
//
// * CurrentHorizontalKeystone: allowed value range: step=1
@@ -7683,7 +7648,6 @@ func (client *RenderingControl2) GetMute(InstanceID uint32, Channel string) (Cur
)
}
//
// Return values:
//
// * CurrentRedVideoBlackLevel: allowed value range: minimum=0, step=1
@@ -7729,7 +7693,6 @@ func (client *RenderingControl2) GetRedVideoBlackLevel(InstanceID uint32) (Curre
)
}
//
// Return values:
//
// * CurrentRedVideoGain: allowed value range: minimum=0, step=1
@@ -7775,7 +7738,6 @@ func (client *RenderingControl2) GetRedVideoGain(InstanceID uint32) (CurrentRedV
)
}
//
// Return values:
//
// * CurrentSharpness: allowed value range: minimum=0, step=1
@@ -7869,7 +7831,6 @@ func (client *RenderingControl2) GetStateVariables(InstanceID uint32, StateVaria
)
}
//
// Return values:
//
// * CurrentVerticalKeystone: allowed value range: step=1
@@ -7920,7 +7881,6 @@ func (client *RenderingControl2) GetVerticalKeystone(InstanceID uint32) (Current
//
// * Channel: allowed values: Master
//
// Return values:
//
// * CurrentVolume: allowed value range: minimum=0, step=1

View File

@@ -1052,7 +1052,6 @@ func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() (NewBPIEncryptionEn
return client.GetBPIEncryptionEnabledCtx(context.Background())
}
//
// Return values:
//
// * NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied
@@ -1164,7 +1163,6 @@ func (client *WANCableLinkConfig1) GetDownstreamFrequency() (NewDownstreamFreque
return client.GetDownstreamFrequencyCtx(context.Background())
}
//
// Return values:
//
// * NewDownstreamModulation: allowed values: 64QAM, 256QAM
@@ -1304,7 +1302,6 @@ func (client *WANCableLinkConfig1) GetUpstreamFrequency() (NewUpstreamFrequency
return client.GetUpstreamFrequencyCtx(context.Background())
}
//
// Return values:
//
// * NewUpstreamModulation: allowed values: QPSK, 16QAM
@@ -1494,7 +1491,6 @@ func (client *WANCommonInterfaceConfig1) GetActiveConnection(NewActiveConnection
)
}
//
// Return values:
//
// * NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet
@@ -1580,7 +1576,6 @@ func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() (NewEnabledForI
return client.GetEnabledForInternetCtx(context.Background())
}
//
// Return values:
//
// * NewMaximumActiveConnections: allowed value range: minimum=1, step=1
@@ -1965,7 +1960,6 @@ func (client *WANDSLLinkConfig1) GetAutoConfig() (NewAutoConfig bool, err error)
return client.GetAutoConfigCtx(context.Background())
}
//
// Return values:
//
// * NewLinkStatus: allowed values: Up, Down
@@ -2329,7 +2323,6 @@ func newWANEthernetLinkConfig1ClientsFromGenericClients(genericClients []goupnp.
return clients
}
//
// Return values:
//
// * NewEthernetLinkStatus: allowed values: Up, Down
@@ -2640,7 +2633,6 @@ func (client *WANIPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime u
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged
@@ -2716,7 +2708,6 @@ func (client *WANIPConnection1) GetExternalIPAddress() (NewExternalIPAddress str
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -2937,7 +2928,6 @@ func (client *WANIPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
@@ -3471,7 +3461,6 @@ func (client *WANPOTSLinkConfig1) GetFclass() (NewFclass string, err error) {
return client.GetFclassCtx(context.Background())
}
//
// Return values:
//
// * NewLinkType: allowed values: PPP_Dialup
@@ -3964,7 +3953,6 @@ func (client *WANPPPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay
@@ -4040,7 +4028,6 @@ func (client *WANPPPConnection1) GetExternalIPAddress() (NewExternalIPAddress st
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -4435,7 +4422,6 @@ func (client *WANPPPConnection1) GetSpecificPortMappingEntry(NewRemoteHost strin
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected

View File

@@ -1687,7 +1687,6 @@ func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() (NewBPIEncryptionEn
return client.GetBPIEncryptionEnabledCtx(context.Background())
}
//
// Return values:
//
// * NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied
@@ -1799,7 +1798,6 @@ func (client *WANCableLinkConfig1) GetDownstreamFrequency() (NewDownstreamFreque
return client.GetDownstreamFrequencyCtx(context.Background())
}
//
// Return values:
//
// * NewDownstreamModulation: allowed values: 64QAM, 256QAM
@@ -1939,7 +1937,6 @@ func (client *WANCableLinkConfig1) GetUpstreamFrequency() (NewUpstreamFrequency
return client.GetUpstreamFrequencyCtx(context.Background())
}
//
// Return values:
//
// * NewUpstreamModulation: allowed values: QPSK, 16QAM
@@ -2129,7 +2126,6 @@ func (client *WANCommonInterfaceConfig1) GetActiveConnection(NewActiveConnection
)
}
//
// Return values:
//
// * NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet
@@ -2215,7 +2211,6 @@ func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() (NewEnabledForI
return client.GetEnabledForInternetCtx(context.Background())
}
//
// Return values:
//
// * NewMaximumActiveConnections: allowed value range: minimum=1, step=1
@@ -2600,7 +2595,6 @@ func (client *WANDSLLinkConfig1) GetAutoConfig() (NewAutoConfig bool, err error)
return client.GetAutoConfigCtx(context.Background())
}
//
// Return values:
//
// * NewLinkStatus: allowed values: Up, Down
@@ -2964,7 +2958,6 @@ func newWANEthernetLinkConfig1ClientsFromGenericClients(genericClients []goupnp.
return clients
}
//
// Return values:
//
// * NewEthernetLinkStatus: allowed values: Up, Down
@@ -3275,7 +3268,6 @@ func (client *WANIPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime u
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged
@@ -3351,7 +3343,6 @@ func (client *WANIPConnection1) GetExternalIPAddress() (NewExternalIPAddress str
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -3572,7 +3563,6 @@ func (client *WANIPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
@@ -4354,7 +4344,6 @@ func (client *WANIPConnection2) GetExternalIPAddress() (NewExternalIPAddress str
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -4646,7 +4635,6 @@ func (client *WANIPConnection2) GetSpecificPortMappingEntry(NewRemoteHost string
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connecting, Connected, PendingDisconnect, Disconnecting, Disconnected
@@ -5602,7 +5590,6 @@ func (client *WANPOTSLinkConfig1) GetFclass() (NewFclass string, err error) {
return client.GetFclassCtx(context.Background())
}
//
// Return values:
//
// * NewLinkType: allowed values: PPP_Dialup
@@ -6095,7 +6082,6 @@ func (client *WANPPPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay
@@ -6171,7 +6157,6 @@ func (client *WANPPPConnection1) GetExternalIPAddress() (NewExternalIPAddress st
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -6566,7 +6551,6 @@ func (client *WANPPPConnection1) GetSpecificPortMappingEntry(NewRemoteHost strin
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected

View File

@@ -1061,7 +1061,6 @@ func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() (NewBPIEncryptionEn
return client.GetBPIEncryptionEnabledCtx(context.Background())
}
//
// Return values:
//
// * NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied
@@ -1173,7 +1172,6 @@ func (client *WANCableLinkConfig1) GetDownstreamFrequency() (NewDownstreamFreque
return client.GetDownstreamFrequencyCtx(context.Background())
}
//
// Return values:
//
// * NewDownstreamModulation: allowed values: 64QAM, 256QAM
@@ -1313,7 +1311,6 @@ func (client *WANCableLinkConfig1) GetUpstreamFrequency() (NewUpstreamFrequency
return client.GetUpstreamFrequencyCtx(context.Background())
}
//
// Return values:
//
// * NewUpstreamModulation: allowed values: QPSK, 16QAM
@@ -1503,7 +1500,6 @@ func (client *WANCommonInterfaceConfig1) GetActiveConnection(NewActiveConnection
)
}
//
// Return values:
//
// * NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet
@@ -1589,7 +1585,6 @@ func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() (NewEnabledForI
return client.GetEnabledForInternetCtx(context.Background())
}
//
// Return values:
//
// * NewMaximumActiveConnections: allowed value range: minimum=1, step=1
@@ -1974,7 +1969,6 @@ func (client *WANDSLLinkConfig1) GetAutoConfig() (NewAutoConfig bool, err error)
return client.GetAutoConfigCtx(context.Background())
}
//
// Return values:
//
// * NewLinkStatus: allowed values: Up, Down
@@ -2338,7 +2332,6 @@ func newWANEthernetLinkConfig1ClientsFromGenericClients(genericClients []goupnp.
return clients
}
//
// Return values:
//
// * NewEthernetLinkStatus: allowed values: Up, Down
@@ -2649,7 +2642,6 @@ func (client *WANIPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime u
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged
@@ -2725,7 +2717,6 @@ func (client *WANIPConnection1) GetExternalIPAddress() (NewExternalIPAddress str
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -2946,7 +2937,6 @@ func (client *WANIPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
@@ -3664,7 +3654,6 @@ func (client *WANIPConnection2) GetAutoDisconnectTime() (NewAutoDisconnectTime u
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewConnectionType: allowed values: Unconfigured, IP_Routed, IP_Bridged
@@ -3740,7 +3729,6 @@ func (client *WANIPConnection2) GetExternalIPAddress() (NewExternalIPAddress str
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -3966,7 +3954,6 @@ func (client *WANIPConnection2) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNA
//
// * NewProtocol: allowed values: TCP, UDP
//
// Return values:
//
// * NewInternalPort: allowed value range: minimum=1, maximum=65535
@@ -4042,7 +4029,6 @@ func (client *WANIPConnection2) GetSpecificPortMappingEntry(NewRemoteHost string
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
@@ -5003,7 +4989,6 @@ func (client *WANPOTSLinkConfig1) GetFclass() (NewFclass string, err error) {
return client.GetFclassCtx(context.Background())
}
//
// Return values:
//
// * NewLinkType: allowed values: PPP_Dialup
@@ -5496,7 +5481,6 @@ func (client *WANPPPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime
return client.GetAutoDisconnectTimeCtx(context.Background())
}
//
// Return values:
//
// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay
@@ -5572,7 +5556,6 @@ func (client *WANPPPConnection1) GetExternalIPAddress() (NewExternalIPAddress st
return client.GetExternalIPAddressCtx(context.Background())
}
//
// Return values:
//
// * NewProtocol: allowed values: TCP, UDP
@@ -5967,7 +5950,6 @@ func (client *WANPPPConnection1) GetSpecificPortMappingEntry(NewRemoteHost strin
)
}
//
// Return values:
//
// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected

2
dcps/openhome/gen.go Normal file
View File

@@ -0,0 +1,2 @@
//go:generate goupnpdcpgen -dcp_name openhome -code_tmpl_file ../dcps.gotemplate
package openhome

10825
dcps/openhome/openhome.go Normal file

File diff suppressed because it is too large Load Diff