mirror of https://github.com/stashapp/stash.git
206 lines
7.2 KiB
Go
206 lines
7.2 KiB
Go
package dlna
|
|
|
|
// from https://github.com/rclone/rclone
|
|
// Copyright (C) 2012 by Nick Craig-Wood http://www.craig-wood.com/nick/
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
// in the Software without restriction, including without limitation the rights
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
// furnished to do so, subject to the following conditions:
|
|
|
|
// The above copyright notice and this permission notice shall be included in
|
|
// all copies or substantial portions of the Software.
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
// THE SOFTWARE.
|
|
|
|
const connectionManagerServiceDescription = `<?xml version="1.0" encoding="UTF-8"?>
|
|
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
|
|
<specVersion>
|
|
<major>1</major>
|
|
<minor>0</minor>
|
|
</specVersion>
|
|
<actionList>
|
|
<action>
|
|
<name>GetProtocolInfo</name>
|
|
<argumentList>
|
|
<argument>
|
|
<name>Source</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>SourceProtocolInfo</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>Sink</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>SinkProtocolInfo</relatedStateVariable>
|
|
</argument>
|
|
</argumentList>
|
|
</action>
|
|
<action>
|
|
<name>PrepareForConnection</name>
|
|
<argumentList>
|
|
<argument>
|
|
<name>RemoteProtocolInfo</name>
|
|
<direction>in</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ProtocolInfo</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>PeerConnectionManager</name>
|
|
<direction>in</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionManager</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>PeerConnectionID</name>
|
|
<direction>in</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>Direction</name>
|
|
<direction>in</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_Direction</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>ConnectionID</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>AVTransportID</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_AVTransportID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>RcsID</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_RcsID</relatedStateVariable>
|
|
</argument>
|
|
</argumentList>
|
|
</action>
|
|
<action>
|
|
<name>ConnectionComplete</name>
|
|
<argumentList>
|
|
<argument>
|
|
<name>ConnectionID</name>
|
|
<direction>in</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>
|
|
</argument>
|
|
</argumentList>
|
|
</action>
|
|
<action>
|
|
<name>GetCurrentConnectionIDs</name>
|
|
<argumentList>
|
|
<argument>
|
|
<name>ConnectionIDs</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>CurrentConnectionIDs</relatedStateVariable>
|
|
</argument>
|
|
</argumentList>
|
|
</action>
|
|
<action>
|
|
<name>GetCurrentConnectionInfo</name>
|
|
<argumentList>
|
|
<argument>
|
|
<name>ConnectionID</name>
|
|
<direction>in</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>RcsID</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_RcsID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>AVTransportID</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_AVTransportID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>ProtocolInfo</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ProtocolInfo</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>PeerConnectionManager</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionManager</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>PeerConnectionID</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>Direction</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_Direction</relatedStateVariable>
|
|
</argument>
|
|
<argument>
|
|
<name>Status</name>
|
|
<direction>out</direction>
|
|
<relatedStateVariable>A_ARG_TYPE_ConnectionStatus</relatedStateVariable>
|
|
</argument>
|
|
</argumentList>
|
|
</action>
|
|
</actionList>
|
|
<serviceStateTable>
|
|
<stateVariable sendEvents="yes">
|
|
<name>SourceProtocolInfo</name>
|
|
<dataType>string</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="yes">
|
|
<name>SinkProtocolInfo</name>
|
|
<dataType>string</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="yes">
|
|
<name>CurrentConnectionIDs</name>
|
|
<dataType>string</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_ConnectionStatus</name>
|
|
<dataType>string</dataType>
|
|
<allowedValueList>
|
|
<allowedValue>OK</allowedValue>
|
|
<allowedValue>ContentFormatMismatch</allowedValue>
|
|
<allowedValue>InsufficientBandwidth</allowedValue>
|
|
<allowedValue>UnreliableChannel</allowedValue>
|
|
<allowedValue>Unknown</allowedValue>
|
|
</allowedValueList>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_ConnectionManager</name>
|
|
<dataType>string</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_Direction</name>
|
|
<dataType>string</dataType>
|
|
<allowedValueList>
|
|
<allowedValue>Input</allowedValue>
|
|
<allowedValue>Output</allowedValue>
|
|
</allowedValueList>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_ProtocolInfo</name>
|
|
<dataType>string</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_ConnectionID</name>
|
|
<dataType>i4</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_AVTransportID</name>
|
|
<dataType>i4</dataType>
|
|
</stateVariable>
|
|
<stateVariable sendEvents="no">
|
|
<name>A_ARG_TYPE_RcsID</name>
|
|
<dataType>i4</dataType>
|
|
</stateVariable>
|
|
</serviceStateTable>
|
|
</scpd>`
|