tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / media / BufferCache.h
blob228b52991a21cd27901508bd86c84db2b5fcb975
1 /*
2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
3 * Copyright 2002, Marcus Overhagen. All Rights Reserved.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef _BUFFER_CACHE_H_
7 #define _BUFFER_CACHE_H_
10 #include <map>
12 #include <MediaDefs.h>
15 class BBuffer;
18 namespace BPrivate {
21 class BufferCache {
22 public:
23 BufferCache();
24 ~BufferCache();
26 BBuffer* GetBuffer(media_buffer_id id);
28 private:
29 typedef std::map<media_buffer_id, BBuffer*> BufferMap;
31 BufferMap fMap;
35 } // namespace BPrivate
38 #endif // _BUFFER_CACHE_H_