Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
791 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. BUFPOOL.H
  5. Abstract:
  6. Header for buffer pool manager
  7. Author:
  8. Aaron Ogus (aarono)
  9. Environment:
  10. Win32/COM
  11. Revision History:
  12. Date Author Description
  13. ======= ====== ============================================================
  14. 1/30/97 aarono Original
  15. --*/
  16. #ifndef _BUFPOOL_H_
  17. #define _BUFPOOL_H_
  18. #include <windows.h>
  19. #include "buffer.h"
  20. #define BUFFER_POOL_SIZE 16
  21. //
  22. // Buffer pools are allocated but only freed when the object is destroyed.
  23. //
  24. typedef struct _BUFFER_POOL {
  25. struct _BUFFER_POOL *pNext;
  26. BUFFER Buffers[BUFFER_POOL_SIZE];
  27. } BUFFER_POOL, *PBUFFER_POOL;
  28. PBUFFER GetBuffer(VOID);
  29. VOID FreeBuffer(PBUFFER);
  30. VOID InitBufferPool(VOID);
  31. VOID FiniBufferPool(VOID);
  32. #endif