From 4d808c7f57e7de856154c7d13b6d2dc6501bb6fc Mon Sep 17 00:00:00 2001 From: Denis Loh Date: Thu, 13 Sep 2012 20:01:49 +0200 Subject: Initial commit --- httptnt/cds_scpd.ecpp | 152 +++++++++++++++++++++++++++++++++++++++++ httptnt/cds_scpd.o | Bin 0 -> 206016 bytes httptnt/cms_scpd.ecpp | 140 +++++++++++++++++++++++++++++++++++++ httptnt/cms_scpd.o | Bin 0 -> 207584 bytes httptnt/deviceDescription.ecpp | 88 ++++++++++++++++++++++++ httptnt/deviceDescription.o | Bin 0 -> 295912 bytes 6 files changed, 380 insertions(+) create mode 100644 httptnt/cds_scpd.ecpp create mode 100644 httptnt/cds_scpd.o create mode 100644 httptnt/cms_scpd.ecpp create mode 100644 httptnt/cms_scpd.o create mode 100644 httptnt/deviceDescription.ecpp create mode 100644 httptnt/deviceDescription.o (limited to 'httptnt') diff --git a/httptnt/cds_scpd.ecpp b/httptnt/cds_scpd.ecpp new file mode 100644 index 0000000..73f0baf --- /dev/null +++ b/httptnt/cds_scpd.ecpp @@ -0,0 +1,152 @@ + +<# + +This is the Connection Manager Service Description File + +It contains the service description for the connection manager of the media server. + +#> +<{ reply.setContentType("application/xml"); }> + + + 1 + 0 + + + + GetSearchCapabilities + + + SearchCaps + out + SearchCapabilities + + + + + GetSortCapabilities + + + SortCaps + out + SortCapabilities + + + + + GetSystemUpdateID + + + Id + out + SystemUpdateID + + + + + Browse + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + BrowseFlag + in + A_ARG_TYPE_BrowseFlag + + + Filter + in + A_ARG_TYPE_Filter + + + StartingIndex + in + A_ARG_TYPE_Index + + + RequestedCount + in + A_ARG_TYPE_Count + + + SortCriteria + in + A_ARG_TYPE_SortCriteria + + + Result + out + A_ARG_TYPE_Result + + + NumberReturned + out + A_ARG_TYPE_Count + + + TotalMatches + out + A_ARG_TYPE_Count + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_Result + string + + + A_ARG_TYPE_BrowseFlag + string + + BrowseMetadata + BrowseDirectChildren + + + + A_ARG_TYPE_Filter + string + + + A_ARG_TYPE_SortCriteria + string + + + A_ARG_TYPE_Index + ui4 + + + A_ARG_TYPE_Count + ui4 + + + A_ARG_TYPE_UpdateID + ui4 + + + SearchCapabilities + string + + + SortCapabilities + string + + + SystemUpdateID + ui4 + + + diff --git a/httptnt/cds_scpd.o b/httptnt/cds_scpd.o new file mode 100644 index 0000000..40f462c Binary files /dev/null and b/httptnt/cds_scpd.o differ diff --git a/httptnt/cms_scpd.ecpp b/httptnt/cms_scpd.ecpp new file mode 100644 index 0000000..766e0a6 --- /dev/null +++ b/httptnt/cms_scpd.ecpp @@ -0,0 +1,140 @@ + +<# + +This is the Connection Manager Service Description File + +It contains the service description for the connection manager of the media server. + +#> +<{ reply.setContentType("application/xml"); }> + + + 1 + 0 + + + + GetProtocolInfo + + + Source + out + SourceProtocolInfo + + + Sink + out + SinkProtocolInfo + + + + + GetCurrentConnectionIDs + + + ConnectionIDs + out + CurrentConnectionIDs + + + + + GetCurrentConnectionInfo + + + ConnectionID + in + A_ARG_TYPE_ConnectionID + + + RcsID + out + A_ARG_TYPE_RcsID + + + AVTransportID + out + A_ARG_TYPE_AVTransportID + + + ProtocolInfo + out + A_ARG_TYPE_ProtocolInfo + + + PeerConnectionManager + out + A_ARG_TYPE_ConnectionManager + + + PeerConnectionID + out + A_ARG_TYPE_ConnectionID + + + Direction + out + A_ARG_TYPE_Direction + + + Status + out + A_ARG_TYPE_ConnectionStatus + + + + + + + SourceProtocolInfo + string + + + SinkProtocolInfo + string + + + CurrentConnectionIDs + string + + + A_ARG_TYPE_ConnectionStatus + string + + OK + ContentFormatMismatch + InsufficientBandwidth + UnreliableChannel + Unknown + + + + A_ARG_TYPE_ConnectionManager + string + + + A_ARG_TYPE_Direction + string + + Input + Output + + + + A_ARG_TYPE_ProtocolInfo + string + + + A_ARG_TYPE_ConnectionID + i4 + + + A_ARG_TYPE_AVTransportID + i4 + + + A_ARG_TYPE_RcsID + i4 + + + diff --git a/httptnt/cms_scpd.o b/httptnt/cms_scpd.o new file mode 100644 index 0000000..4110788 Binary files /dev/null and b/httptnt/cms_scpd.o differ diff --git a/httptnt/deviceDescription.ecpp b/httptnt/deviceDescription.ecpp new file mode 100644 index 0000000..f43ff8c --- /dev/null +++ b/httptnt/deviceDescription.ecpp @@ -0,0 +1,88 @@ + +<# + +This is the Device Description File + +It contains the device and service descriptions of the media server. + +#> +<%pre> +#include +#include +#include "../include/tools.h" +#include "../include/server.h" +#include "../include/service.h" +#include "../include/webserver.h" +#include "../include/config.h" + +using namespace upnp; + +<{ + upnp::cMediaServer* server = cMediaServer::GetInstance(); + const upnp::cWebserver& webserver = server->GetWebserver(); + + const upnp::cMediaServer::Description& serverDescription = server->GetServerDescription(); + std::string deviceUUID = server->GetDeviceUUID(); + std::string urlBase = webserver.GetBaseUrl(); + std::string presentationUrl = webserver.GetPresentationUrl(); + std::string staticContentUrl = webserver.GetStaticContentUrl(); + + std::string serviceUrl = webserver.GetServiceUrl(); + std::string controlUrl = webserver.GetControlUrl(); + + reply.setContentType("application/xml"); + +}> + + + 1 + 0 + + <$ urlBase $> + + urn:schemas-upnp-org:device:MediaServer:1 + <$ serverDescription.friendlyName $> + <$ serverDescription.manufacturer $> + <$ serverDescription.manufacturerURL $> + <$ serverDescription.modelDescription $> + <$ serverDescription.modelName $> + <$ serverDescription.modelNumber $> + <$ serverDescription.modelURL $> + <$ serverDescription.serialNumber $> + <$ deviceUUID $> + <$ presentationUrl $> + DMS-1.50 + +<{ + const cMediaServer::serviceMap& services = server->GetServices(); + + for(cMediaServer::serviceMap::const_iterator it = services.begin(); it != services.end(); ++it){ + const cUPnPService::Description& serviceDescription = (*it).second->GetServiceDescription(); +}> + + + <$ serviceDescription.serviceType $> + <$ serviceDescription.serviceID $> + <$ serviceUrl $><$ serviceDescription.SCPDXML $> + <$ controlUrl $><$ serviceDescription.controlDescriptor $> + <$ controlUrl $><$ serviceDescription.eventSubscriberDescriptor $> + +% }; + + +<{ + const cMediaServer::iconList& icons = server->GetServerIcons(); + + for(cMediaServer::iconList::const_iterator it = icons.begin(); it != icons.end(); ++it){ +}> + + <$ (*it).profile.mime $> + <$ (*it).profile.width $> + <$ (*it).profile.height $> + <$ (int)(*it).profile.bitDepth $> + <$ staticContentUrl $><$ (*it).filename $> + +% }; + + + \ No newline at end of file diff --git a/httptnt/deviceDescription.o b/httptnt/deviceDescription.o new file mode 100644 index 0000000..b14f268 Binary files /dev/null and b/httptnt/deviceDescription.o differ -- cgit v1.2.3