Switch to unified view

a/scripts/sdeftoc.py b/scripts/sdeftoc.py
...
...
96
        self.inargs = []
96
        self.inargs = []
97
        self.outargs = []
97
        self.outargs = []
98
        self.actions = []
98
        self.actions = []
99
        self.statevars = {}
99
        self.statevars = {}
100
        self.cprolog = cprolog_text % os.path.basename(hfn)
100
        self.cprolog = cprolog_text % os.path.basename(hfn)
101
        self.cprolog += 'static const string sTp%s("urn:XXX");\n' % classname
101
        self.cprolog += 'static const string sTp%s("urn:XXX:1");\n' % classname
102
        self.cprolog += 'static const string sId%s("urn:XXX:1");\n\n' % classname
102
        self.cprolog += 'static const string sId%s("urn:XXX");\n\n' % classname
103
        self.cprolog += '%s::%s(UPnPProvider::UpnpDevice *dev)\n' % \
103
        self.cprolog += '%s::%s(UPnPProvider::UpnpDevice *dev)\n' % \
104
                        (classname, classname)
104
                        (classname, classname)
105
        self.cprolog += '    : UpnpService(sTp%s, sId%s, dev)\n'  % \
105
        self.cprolog += '    : UpnpService(sTp%s, sId%s, dev)\n'  % \
106
                        (classname, classname)
106
                        (classname, classname)
107
        self.cprolog += '{\n'
107
        self.cprolog += '{\n'
...
...
195
            txt += '        return UPNP_E_INVALID_PARAM;\n'
195
            txt += '        return UPNP_E_INVALID_PARAM;\n'
196
            txt += '    }\n'
196
            txt += '    }\n'
197
                
197
                
198
        txt += "\n"
198
        txt += "\n"
199
199
200
        txt += '    LOGDEB("%s: "' % methname
201
        for arg in inargs:
202
            txt += ' << " %s " << in_%s' % (arg[0], arg[0])
203
        txt += ' << endl);\n\n'
204
        
200
        for arg in outargs:
205
        for arg in outargs:
201
            txt += '    std::string out_%s;\n' % arg[0]
206
            txt += '    std::string out_%s;\n' % arg[0]
202
        for arg in outargs:
207
        for arg in outargs:
203
            txt += '    data.addarg("%s", out_%s);\n' % (arg[0], arg[0])
208
            txt += '    data.addarg("%s", out_%s);\n' % (arg[0], arg[0])
204
                    
209