make video stream type for running service accessible from python
[enigma2.git] / lib / service / iservice.h
index 53abbf1a7b08445e46c8021b260b85e3c7a69e91..c93c84a547fa26ce7de16a4085145ac4609be472 100644 (file)
@@ -51,6 +51,13 @@ public:
        std::string getPath() { return path; }
        void setPath( const std::string &n ) { path=n; }
 
+       unsigned int getUnsignedData(unsigned int num) const
+       {
+               if ( num < sizeof(data)/sizeof(int) )
+                       return data[num];
+               return 0;
+       }
+
        int getData(unsigned int num) const
        {
                if ( num < sizeof(data)/sizeof(int) )
@@ -58,6 +65,12 @@ public:
                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) )
@@ -261,6 +274,7 @@ public:
                sTracknumber,
                sGenre,
                sCAIDs,
+               sVideoType  // MPEG2 MPEG4
        };
        enum { resNA = -1, resIsString = -2, resIsPyObject = -3 };
 
@@ -500,7 +514,7 @@ class iListableService: public iObject
 public:
                /* legacy interface: get a list */
        virtual RESULT getContent(std::list<eServiceReference> &list, bool sorted=false)=0;
-       virtual RESULT getContent(PyObject *list, bool sorted=false)=0;
+       virtual PyObject *getContent(const char* format, bool sorted=false)=0;
 
                /* new, shiny interface: streaming. */
        virtual SWIG_VOID(RESULT) getNext(eServiceReference &SWIG_OUTPUT)=0;