Ticket #4280: 0003-Allow-defining-different-versions-of-the-XML-without.patch

File 0003-Allow-defining-different-versions-of-the-XML-without.patch, 1.5 KB (added by Andrew Ruthven <andrew@…>, 12 years ago)
  • mythtv/programs/mythbackend/httpstatus.cpp

    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 ) 
    153153    root.setAttribute("ISODate" , qdtNow.toString(Qt::ISODate)  );
    154154    root.setAttribute("version" , MYTH_BINARY_VERSION           );
    155155    root.setAttribute("protoVer", MYTH_PROTO_VERSION            );
     156    root.setAttribute("xmlVer"  , MYTH_XML_VERSION              );
    156157
    157158    // Add all encoders, if any
    158159
  • mythtv/programs/mythbackend/httpstatus.h

    diff --git a/mythtv/programs/mythbackend/httpstatus.h b/mythtv/programs/mythbackend/httpstatus.h
    index f472a05..3854a6b 100644
    a b  
    2121#include "jobqueue.h"
    2222#include "programinfo.h"
    2323
     24#define MYTH_XML_VERSION "1"
    2425
    2526typedef enum
    2627{