Files
haiku-beta6/headers/private/media/PluginManager.h
T

41 lines
829 B
C++
Raw Normal View History

2003-12-01 23:33:35 +00:00
#ifndef _PLUGIN_MANAGER_H
#define _PLUGIN_MANAGER_H
#include "ReaderPlugin.h"
#include "DecoderPlugin.h"
#include <TList.h>
#include <Locker.h>
2003-12-01 23:33:35 +00:00
status_t _CreateReader(Reader **reader, int32 *streamCount, media_file_format *mff, BDataIO *source);
2004-02-29 20:09:42 +00:00
status_t _CreateDecoder(Decoder **decoder, const media_format &format);
2003-12-01 23:33:35 +00:00
void _DestroyReader(Reader *reader);
void _DestroyDecoder(Decoder *decoder);
class PluginManager
{
public:
PluginManager();
~PluginManager();
MediaPlugin * GetPlugin(const entry_ref &ref);
void PutPlugin(MediaPlugin *plugin);
private:
bool LoadPlugin(const entry_ref &ref, MediaPlugin **plugin, image_id *image);
struct plugin_info
{
char name[260];
int usecount;
MediaPlugin *plugin;
image_id image;
};
List<plugin_info> *fPluginList;
BLocker *fLocker;
};
2003-12-01 23:33:35 +00:00
#endif