2 * Copyright 2004-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
9 #ifndef _FORMAT_MANAGER_H
10 #define _FORMAT_MANAGER_H
14 #include <ObjectList.h>
17 #include "MetaFormat.h"
24 void GetFormats(bigtime_t lastUpdate
, BMessage
& reply
);
25 status_t
MakeFormatFor(
26 const media_format_description
* descriptions
,
27 int32 descriptionCount
,
28 media_format
& format
, uint32 flags
,
30 void RemoveFormat(const media_format
& format
);
32 static FormatManager
* GetInstance();
36 static void CreateInstance();
38 typedef BPrivate::media::meta_format meta_format
;
40 BObjectList
<meta_format
> fList
;
42 bigtime_t fLastUpdate
;
45 static FormatManager
* sInstance
;
46 static pthread_once_t sInitOnce
;
49 #endif // _FORMAT_MANAGER_H