Added interface to WriterPlugin to get all supported media_format_families.
Don't yet know if that's the way it's supposed to work... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31933 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
069b477dd7
commit
92d809b687
@ -18,8 +18,6 @@ public:
|
||||
virtual status_t Flush() = 0;
|
||||
virtual status_t Close() = 0;
|
||||
|
||||
virtual void GetFileFormatInfo(media_file_format* mff) = 0;
|
||||
|
||||
virtual status_t AllocateCookie(void** cookie) = 0;
|
||||
virtual status_t FreeCookie(void* cookie) = 0;
|
||||
|
||||
@ -58,6 +56,14 @@ public: // XXX for test programs only
|
||||
class WriterPlugin : public virtual MediaPlugin {
|
||||
public:
|
||||
virtual Writer* NewWriter() = 0;
|
||||
// TODO: Perhaps change this interface to make it clear if we
|
||||
// want the _fileFormats to be allocated! This is used in
|
||||
// src/servers/media/AddOnManager.cpp:_RegisterWriter() and the
|
||||
// objects are not freed by that method!
|
||||
virtual status_t GetSupportedFileFormats(
|
||||
media_file_format** _fileFormats,
|
||||
size_t* _count) = 0;
|
||||
|
||||
};
|
||||
|
||||
} } // namespace BPrivate::media
|
||||
|
Loading…
Reference in New Issue
Block a user