Move MediaIO in it's own header
This commit is contained in:
parent
2250435e4c
commit
8c7679851f
|
@ -163,29 +163,4 @@ private:
|
|||
};
|
||||
|
||||
|
||||
class BMediaIO : public BPositionIO {
|
||||
public:
|
||||
BMediaIO();
|
||||
virtual ~BMediaIO();
|
||||
|
||||
virtual bool IsSeekable() const = 0;
|
||||
virtual bool IsFile() const = 0;
|
||||
|
||||
virtual bool IsEndless() const = 0;
|
||||
virtual bool IsCached() const = 0;
|
||||
virtual size_t CacheSize() const = 0;
|
||||
|
||||
private:
|
||||
BMediaIO(const BMediaIO&);
|
||||
BMallocIO& operator=(const BMediaIO&);
|
||||
|
||||
virtual void _ReservedMediaIO1();
|
||||
virtual void _ReservedMediaIO2();
|
||||
virtual void _ReservedMediaIO3();
|
||||
virtual void _ReservedMediaIO4();
|
||||
virtual void _ReservedMediaIO5();
|
||||
|
||||
uint32 _reserved[1];
|
||||
};
|
||||
|
||||
#endif // _DATA_IO_H
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright 2016 Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _MEDIA_IO_H
|
||||
#define _MEDIA_IO_H
|
||||
|
||||
|
||||
#include <DataIO.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
class BMediaIO : public BPositionIO {
|
||||
public:
|
||||
BMediaIO();
|
||||
virtual ~BMediaIO();
|
||||
|
||||
virtual bool IsSeekable() const = 0;
|
||||
virtual bool IsEndless() const = 0;
|
||||
|
||||
private:
|
||||
BMediaIO(const BMediaIO&);
|
||||
BMallocIO& operator=(const BMediaIO&);
|
||||
|
||||
virtual void _ReservedMediaIO1();
|
||||
virtual void _ReservedMediaIO2();
|
||||
virtual void _ReservedMediaIO3();
|
||||
virtual void _ReservedMediaIO4();
|
||||
virtual void _ReservedMediaIO5();
|
||||
|
||||
uint32 _reserved[1];
|
||||
};
|
||||
|
||||
#endif // _MEDIA_IO_H
|
|
@ -1,12 +1,14 @@
|
|||
#ifndef _STREAMER_PLUGIN_H
|
||||
#define _STREAMER_PLUGIN_H
|
||||
|
||||
#include <DataIO.h>
|
||||
|
||||
#include <MediaIO.h>
|
||||
#include <MediaTrack.h>
|
||||
#include <Url.h>
|
||||
|
||||
#include "MediaPlugin.h"
|
||||
|
||||
|
||||
namespace BPrivate { namespace media {
|
||||
|
||||
class PluginManager;
|
||||
|
@ -41,4 +43,5 @@ public:
|
|||
|
||||
using namespace BPrivate::media;
|
||||
|
||||
|
||||
#endif // _STREAMER_PLUGIN_H
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <AutoDeleter.h>
|
||||
#include <Autolock.h>
|
||||
#include <ByteOrder.h>
|
||||
#include <DataIO.h>
|
||||
#include <MediaIO.h>
|
||||
#include <MediaDefs.h>
|
||||
#include <MediaFormats.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <AutoDeleter.h>
|
||||
#include <Autolock.h>
|
||||
#include <ByteOrder.h>
|
||||
#include <DataIO.h>
|
||||
#include <MediaIO.h>
|
||||
#include <MediaDefs.h>
|
||||
#include <MediaFormats.h>
|
||||
#include <Roster.h>
|
||||
|
|
|
@ -24,6 +24,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||
!missing_symbols.cpp
|
||||
Deprecated.cpp
|
||||
MediaRecorder.cpp
|
||||
MediaIO.cpp
|
||||
|
||||
# Public Media Kit
|
||||
Buffer.cpp
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright 2016 Dario Casalinuovo. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <MediaIO.h>
|
||||
|
||||
|
||||
BMediaIO::BMediaIO()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BMediaIO::BMediaIO(const BMediaIO &)
|
||||
{
|
||||
// copying not allowed...
|
||||
}
|
||||
|
||||
|
||||
BMediaIO::~BMediaIO()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// FBC
|
||||
void BMediaIO::_ReservedMediaIO1() {}
|
||||
void BMediaIO::_ReservedMediaIO2() {}
|
||||
void BMediaIO::_ReservedMediaIO3() {}
|
||||
void BMediaIO::_ReservedMediaIO4() {}
|
||||
void BMediaIO::_ReservedMediaIO5() {}
|
|
@ -601,27 +601,3 @@ BMallocIO::operator=(const BMallocIO &)
|
|||
// FBC
|
||||
void BMallocIO::_ReservedMallocIO1() {}
|
||||
void BMallocIO::_ReservedMallocIO2() {}
|
||||
|
||||
|
||||
BMediaIO::BMediaIO()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BMediaIO::BMediaIO(const BMediaIO &)
|
||||
{
|
||||
// copying not allowed...
|
||||
}
|
||||
|
||||
|
||||
BMediaIO::~BMediaIO()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// FBC
|
||||
void BMediaIO::_ReservedMediaIO1() {}
|
||||
void BMediaIO::_ReservedMediaIO2() {}
|
||||
void BMediaIO::_ReservedMediaIO3() {}
|
||||
void BMediaIO::_ReservedMediaIO4() {}
|
||||
void BMediaIO::_ReservedMediaIO5() {}
|
||||
|
|
Loading…
Reference in New Issue