Leaked source code of windows server 2003
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.

37 lines
953 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // rampmap.h
  4. //
  5. // Declares structures and procedures for RLDDIRampmap.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1997.
  8. //
  9. //----------------------------------------------------------------------------
  10. #ifndef _RAMPMAP_H_
  11. #define _RAMPMAP_H_
  12. #include "cmap.h"
  13. struct _RLDDIRampmap;
  14. typedef struct _RLDDIRampmap RLDDIRampmap;
  15. typedef struct _RLDDIRamp {
  16. CIRCLE_QUEUE_MEMBER(_RLDDIRamp) queue;
  17. int base, size;
  18. int free;
  19. } RLDDIRamp;
  20. struct _RLDDIRampmap {
  21. RLDDIColormap* cmap;
  22. CIRCLE_QUEUE_ROOT(RLDDIRampQueue, _RLDDIRamp) free, allocated;
  23. };
  24. RLDDIRampmap* RLDDICreateRampmap(RLDDIColormap* cmap);
  25. void RLDDIDestroyRampmap(RLDDIRampmap* rmap);
  26. RLDDIRamp* RLDDIRampmapAllocate(RLDDIRampmap* rmap, int size);
  27. void RLDDIRampmapFree(RLDDIRampmap* rmap, RLDDIRamp* ramp);
  28. #endif // _RAMPMAP_H_