VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/cr_bufpool.h@ 71007

最後變更 在這個檔案從71007是 69474,由 vboxsync 提交於 7 年 前

*: scm updates - header files should have 'svn:keywords=Id Revision' too (doesn't mean they have to use them).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 947 位元組
 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved.
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#ifndef CR_BUFPOOL_H
8#define CR_BUFPOOL_H
9
10#include <iprt/cdefs.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct CRBufferPool_t CRBufferPool;
17typedef void (*CRBufferPoolDeleteCallback)(void *data);
18
19DECLEXPORT(CRBufferPool *) crBufferPoolInit( unsigned int maxBuffers );
20DECLEXPORT(void) crBufferPoolFree( CRBufferPool *pool );
21DECLEXPORT(void) crBufferPoolCallbackFree(CRBufferPool *pool, CRBufferPoolDeleteCallback pfnDelete);
22
23DECLEXPORT(void) crBufferPoolPush( CRBufferPool *pool, void *buf, unsigned int bytes );
24DECLEXPORT(void *) crBufferPoolPop( CRBufferPool *pool, unsigned int bytes );
25
26DECLEXPORT(int) crBufferPoolGetNumBuffers( CRBufferPool *pool );
27DECLEXPORT(int) crBufferPoolGetMaxBuffers( CRBufferPool *pool );
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif /* CR_BUFPOOL_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette