00001
00002 /*---------------------------------------------------------------------------
00003
00004 File name : reg_alloc.h
00005 Author : N. Devillard
00006 Created on : February 2000
00007 Description : cube allocation tracking routines
00008
00009 *--------------------------------------------------------------------------*/
00010
00011 /*
00012 $Id: reg_alloc.h,v 1.7 2000/10/11 13:56:58 ndevilla Exp $
00013 $Author: ndevilla $
00014 $Date: 2000/10/11 13:56:58 $
00015 $Revision: 1.7 $
00016 */
00017
00018 #ifndef _CUBE_ALLOC_H_
00019 #define _CUBE_ALLOC_H_
00020
00021 /*---------------------------------------------------------------------------
00022 Includes
00023 ---------------------------------------------------------------------------*/
00024
00025 #include <stdio.h>
00026 #include <stdlib.h>
00027 #include "mmap_i.h"
00028
00029
00030 /*---------------------------------------------------------------------------
00031 New types
00032 ---------------------------------------------------------------------------*/
00033
00034 typedef struct _REG_ALLOC_ENTRY_ {
00035 int active ;
00036 void * file_ref ;
00037 void * image_ref ;
00038 mmap_file * mm ;
00039 } reg_alloc_entry ;
00040
00041
00042 /*---------------------------------------------------------------------------
00043 Function ANSI prototypes
00044 ---------------------------------------------------------------------------*/
00045
00046 /*-------------------------------------------------------------------------*/
00060 /*--------------------------------------------------------------------------*/
00061
00062 void reg_alloc_add(reg_alloc_entry * r);
00063
00064
00065
00066 /*-------------------------------------------------------------------------*/
00078 /*--------------------------------------------------------------------------*/
00079
00080 int reg_alloc_remove(reg_alloc_entry * r);
00081
00082
00083
00084 /*-------------------------------------------------------------------------*/
00094 /*--------------------------------------------------------------------------*/
00095
00096 void reg_alloc_status(void);
00097
00098 #endif
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001