Mercurial > pt1.oyama
view src/msr.h @ 144:bf96eac4dbb1
Changed to a variable length buffer of splitbuf_t
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Wed, 01 Aug 2012 23:23:24 +0900 |
parents | e413158cae13 |
children |
line wrap: on
line source
/* * msr.h : GeeXboX uShare Microsoft Registrar Service header. * Originally developped for the GeeXboX project. * Copyright (C) 2006 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 MSR_H_ #define MSR_H_ #define MSR_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>IsAuthorized</name>" \ " <argumentList>" \ " <argument>" \ " <name>DeviceID</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_DeviceID</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>Result</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>RegisterDevice</name>" \ " <argumentList>" \ " <argument>" \ " <name>RegistrationReqMsg</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_RegistrationReqMsg</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>RegistrationRespMsg</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_RegistrationRespMsg</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ " <action>" \ " <name>IsValidated</name>" \ " <argumentList>" \ " <argument>" \ " <name>DeviceID</name>" \ " <direction>in</direction>" \ " <relatedStateVariable>A_ARG_TYPE_DeviceID</relatedStateVariable>" \ " </argument>" \ " <argument>" \ " <name>Result</name>" \ " <direction>out</direction>" \ " <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>" \ " </argument>" \ " </argumentList>" \ " </action>" \ "</actionList>" \ "<serviceStateTable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_DeviceID</name>" \ " <dataType>string</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_Result</name>" \ " <dataType>int</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_RegistrationReqMsg</name>" \ " <dataType>bin.base64</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>A_ARG_TYPE_RegistrationRespMsg</name>" \ " <dataType>bin.base64</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>AuthorizationGrantedUpdateID</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>AuthorizationDeniedUpdateID</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>ValidationSucceededUpdateID</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ " <stateVariable sendEvents=\"no\">" \ " <name>ValidationRevokedUpdateID</name>" \ " <dataType>ui4</dataType>" \ " </stateVariable>" \ "</serviceStateTable>" \ "</scpd>" #define MSR_DESCRIPTION_LEN strlen (MSR_DESCRIPTION) #define MSR_LOCATION "/web/msr.xml" #define MSR_SERVICE_ID "urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar" #define MSR_SERVICE_TYPE "urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1" #endif /* MSR_H_ */