[vlmc-devel] Move enum EndType to IService

Yikai Lu git at videolan.org
Tue Jun 28 10:39:42 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jun 28 01:10:43 2016 +0900| [10ad497de68f0ce31a8c1662a1ec19b259664195] | committer: Yikai Lu

Move enum EndType to IService

> https://code.videolan.org/videolan/vlmc/commit/10ad497de68f0ce31a8c1662a1ec19b259664195
---

 src/Backend/IProducer.h | 5 -----
 src/Backend/IService.h  | 6 ++++++
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/Backend/IProducer.h b/src/Backend/IProducer.h
index 5e6d388..b4de800 100644
--- a/src/Backend/IProducer.h
+++ b/src/Backend/IProducer.h
@@ -44,11 +44,6 @@ namespace Backend
     class IProducer : virtual public IService
     {
     public:
-        enum EndType
-        {
-            EndOfMedia = -1,
-            EndOfParent = -2
-        };
 
         virtual ~IProducer() = default;
         virtual void            setCallback( IProducerEventCb* callback ) = 0;
diff --git a/src/Backend/IService.h b/src/Backend/IService.h
index e8eba3d..dd1b57a 100644
--- a/src/Backend/IService.h
+++ b/src/Backend/IService.h
@@ -45,6 +45,12 @@ namespace Backend
     class IService
     {
     public:
+        enum EndType
+        {
+            EndOfMedia = -1,
+            EndOfParent = -2
+        };
+
         virtual ~IService() = default;
 
         virtual std::string     identifier() const = 0;



More information about the Vlmc-devel mailing list