source: trunk/src/win32k/include/smalloc.h@ 5087

Last change on this file since 5087 was 4164, checked in by bird, 25 years ago

Merged in the Grace branch. New Win32k!

File size: 1.3 KB
Line 
1/* $Id: smalloc.h,v 1.2 2000-09-02 21:08:04 bird Exp $
2 *
3 * Swappable Heap.
4 *
5 * Note: This heap does very little checking on input.
6 * Use with care! We're running at Ring-0!
7 *
8 * Copyright (c) 1999-2000 knut st. osmundsen
9 *
10 * Project Odin Software License can be found in LICENSE.TXT
11 *
12 */
13
14/* XLATOFF */
15#ifndef _SMALLOC_H_
16#define _SMALLOC_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21/* XLATON */
22
23struct HeapState_s;
24
25/*******************************************************************************
26* Exported Functions and Variables *
27*******************************************************************************/
28int swpHeapInit(unsigned, unsigned);
29void * smalloc(unsigned);
30void * srealloc(void *, unsigned);
31void sfree(void *);
32
33unsigned _swp_msize(void *);
34int _swp_validptr(void *);
35int _swp_validptr2(void *, unsigned);
36unsigned _swp_memfree(void);
37unsigned _swp_memused(void);
38int _swp_state(struct HeapState_s *);
39int _swp_heap_check(void);
40void _swp_heapmin(void);
41void _swp_dump_subheaps(void);
42void _swp_dump_allocated(unsigned);
43
44extern unsigned cbSwpHeapMax; /* Maximum amount of memory used by the heap. */
45
46/* XLATOFF */
47#ifdef __cplusplus
48}
49#endif
50#endif /* _MALLOC_H_ */
51/* XLATON */
52
Note: See TracBrowser for help on using the repository browser.