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:
Stephan Aßmus 2009-07-29 19:11:32 +00:00
parent 069b477dd7
commit 92d809b687

View File

@ -12,14 +12,12 @@ class Writer {
public:
Writer();
virtual ~Writer();
virtual status_t SetCopyright(const char* copyright) = 0;
virtual status_t CommitHeader() = 0;
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