Mercurial > pt1.oyama
view src/cds.h @ 158:6fab243c91ab
Fix problem BS-17 can not be recorded.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Mon, 10 Sep 2012 20:32:20 +0900 |
parents | e413158cae13 |
children |
line wrap: on
line source
/* * cds.h : GeeXboX uShare Content Directory Service header. * Originally developped for the GeeXboX project. * Parts of the code are originated from GMediaServer from Oskar Liljeblad. * Copyright (C) 2005-2007 Benjamin Zores <ben@geexbox.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CDS_H_ #define CDS_H_ #define CDS_DESCRIPTION \ "<?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>Browse</name>" \ " <argumentList>" \ " <argument>" \ " <name>ObjectID</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>BrowseFlag</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_BrowseFlag</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>Filter</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Filter</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>StartingIndex</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Index</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>RequestedCount</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>SortCriteria</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_SortCriteria</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>Result</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>NumberReturned</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>TotalMatches</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>UpdateID</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_UpdateID</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>DestroyObject</name>" \ " <argumentList>" \ " <argument>" \ " <name>ObjectID</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>GetSystemUpdateID</name>" \ " <argumentList>" \ " <argument>" \ " <name>Id</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>SystemUpdateID</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>GetSearchCapabilities</name>" \ " <argumentList>" \ " <argument>" \ " <name>SearchCaps</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>SearchCapabilities</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>GetSortCapabilities</name>" \ " <argumentList>" \ " <argument>" \ " <name>SortCaps</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>SortCapabilities</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>UpdateObject</name>" \ " <argumentList>" \ " <argument>" \ " <name>ObjectID</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>CurrentTagValue</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_TagValueList</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>NewTagValue</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_TagValueList</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " </actionList>" \ " <serviceStateTable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_BrowseFlag</name>" \ " <dataType>string</dataType>" \ " <allowedValueList>" \ " <allowedValue>BrowseMetadata</allowedValue>" \ " <allowedValue>BrowseDirectChildren</allowedValue>" \ " </allowedValueList>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"yes\">" \ " <name>SystemUpdateID</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_Count</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_SortCriteria</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>SortCapabilities</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_Index</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_ObjectID</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_UpdateID</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_TagValueList</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_Result</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>SearchCapabilities</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_Filter</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " </serviceStateTable>" \ "</scpd>" #define CDS_DESCRIPTION_LEN strlen (CDS_DESCRIPTION) #define CDS_LOCATION "/web/cds.xml" #define CDS_SERVICE_ID "urn:upnp-org:serviceId:ContentDirectory" #define CDS_SERVICE_TYPE "urn:schemas-upnp-org:service:ContentDirectory:1" #endif /* CDS_H_ */