From dc6a341f992859b0868ac78babd4faf8107d9a02 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 21 May 2009 01:20:31 +0000 Subject: [PATCH] * In the ContentDirectory description, SourceProtocolInfo doesn't need all the MIME types in AllowedValues. It actually makes the UPnP Certification Test Tool fail. --- testupnpdescgen.c | 12 +++++++++--- upnpdescgen.c | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/testupnpdescgen.c b/testupnpdescgen.c index 343e40f..59272cf 100644 --- a/testupnpdescgen.c +++ b/testupnpdescgen.c @@ -101,15 +101,21 @@ main(int argc, char * * argv) rootDesc = genRootDesc(&rootDescLen); xml_pretty_print(rootDesc, rootDescLen, stdout); free(rootDesc); - printf("\n-------------\n"); + printf("\n----------------\n"); + printf("ContentDirectory\n"); + printf("----------------\n"); s = genContentDirectory(&l); xml_pretty_print(s, l, stdout); free(s); - printf("\n-------------\n"); + printf("\n----------------\n"); + printf("ConnectionManager\n"); + printf("----------------\n"); s = genConnectionManager(&l); xml_pretty_print(s, l, stdout); free(s); - printf("\n-------------\n"); + printf("\n----------------\n"); + printf("X_MS_MRR\n"); + printf("----------------\n"); s = genX_MS_MediaReceiverRegistrar(&l); xml_pretty_print(s, l, stdout); free(s); diff --git a/upnpdescgen.c b/upnpdescgen.c index f4b438c..85789a7 100644 --- a/upnpdescgen.c +++ b/upnpdescgen.c @@ -292,7 +292,7 @@ static const struct action ConnectionManagerActions[] = static const struct stateVar ConnectionManagerVars[] = { - {"SourceProtocolInfo", 1<<7, 0, 44, 44}, /* required */ + {"SourceProtocolInfo", 1<<7, 0, 0, 44}, /* required */ {"SinkProtocolInfo", 1<<7, 0, 0, 48}, /* required */ {"CurrentConnectionIDs", 1<<7, 0, 0, 46}, /* required */ {"A_ARG_TYPE_ConnectionStatus", 0, 0, 27}, /* required */