From 6b1c614b5b34393072b93d936c8f6c18487a69a9 Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <puck@catalyst.net.nz>
Date: Fri, 7 Dec 2007 11:15:45 +1300
Subject: [PATCH] Allow defining different versions of the XML without having to increment the protocol version.
Without this it will make telling the differing versions of the XML feed apart
rather difficult.
---
mythtv/programs/mythbackend/httpstatus.cpp | 1 +
mythtv/programs/mythbackend/httpstatus.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/mythtv/programs/mythbackend/httpstatus.cpp b/mythtv/programs/mythbackend/httpstatus.cpp
index 1740b67..2fe0da3 100644
a
|
b
|
void HttpStatus::FillStatusXML( QDomDocument *pDoc ) |
153 | 153 | root.setAttribute("ISODate" , qdtNow.toString(Qt::ISODate) ); |
154 | 154 | root.setAttribute("version" , MYTH_BINARY_VERSION ); |
155 | 155 | root.setAttribute("protoVer", MYTH_PROTO_VERSION ); |
| 156 | root.setAttribute("xmlVer" , MYTH_XML_VERSION ); |
156 | 157 | |
157 | 158 | // Add all encoders, if any |
158 | 159 | |
diff --git a/mythtv/programs/mythbackend/httpstatus.h b/mythtv/programs/mythbackend/httpstatus.h
index f472a05..3854a6b 100644
a
|
b
|
|
21 | 21 | #include "jobqueue.h" |
22 | 22 | #include "programinfo.h" |
23 | 23 | |
| 24 | #define MYTH_XML_VERSION "1" |
24 | 25 | |
25 | 26 | typedef enum |
26 | 27 | { |