git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
much more flexible method to get a servicelist in python..
[enigma2.git]
/
lib
/
service
/
iservice.h
diff --git
a/lib/service/iservice.h
b/lib/service/iservice.h
index fb56175d056bbcf31eb0ceb4c7b6996c5c941314..5ddf0cf8bbf7f73566607ab77902c0438414c862 100644
(file)
--- a/
lib/service/iservice.h
+++ b/
lib/service/iservice.h
@@
-51,13
+51,26
@@
public:
std::string getPath() { return path; }
void setPath( const std::string &n ) { path=n; }
std::string getPath() { return path; }
void setPath( const std::string &n ) { path=n; }
- unsigned int getData(unsigned int num) const
+ unsigned int get
Unsigned
Data(unsigned int num) const
{
if ( num < sizeof(data)/sizeof(int) )
return data[num];
return 0;
}
{
if ( num < sizeof(data)/sizeof(int) )
return data[num];
return 0;
}
+ int getData(unsigned int num) const
+ {
+ if ( num < sizeof(data)/sizeof(int) )
+ return data[num];
+ return 0;
+ }
+
+ void setUnsignedData(unsigned int num, unsigned int val)
+ {
+ if ( num < sizeof(data)/sizeof(int) )
+ data[num] = val;
+ }
+
void setData(unsigned int num, int val)
{
if ( num < sizeof(data)/sizeof(int) )
void setData(unsigned int num, int val)
{
if ( num < sizeof(data)/sizeof(int) )
@@
-500,7
+513,7
@@
class iListableService: public iObject
public:
/* legacy interface: get a list */
virtual RESULT getContent(std::list<eServiceReference> &list, bool sorted=false)=0;
public:
/* legacy interface: get a list */
virtual RESULT getContent(std::list<eServiceReference> &list, bool sorted=false)=0;
- virtual
RESULT getContent(PyObject *lis
t, bool sorted=false)=0;
+ virtual
PyObject *getContent(const char* forma
t, bool sorted=false)=0;
/* new, shiny interface: streaming. */
virtual SWIG_VOID(RESULT) getNext(eServiceReference &SWIG_OUTPUT)=0;
/* new, shiny interface: streaming. */
virtual SWIG_VOID(RESULT) getNext(eServiceReference &SWIG_OUTPUT)=0;