ip51_dm_extr.h

来自「基于51的动态内存管理」· C头文件 代码 · 共 56 行

H
56
字号
/*************************************************************************/
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains function prototypes of all functions          */
/*      accessible to other components.                                  */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      dm_defs.h                           Dynamic Management constants */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                   REMARKS                                */
/*                                                                       */
/**************************************************************************/

#include        "ip51_dm_defs.h"                 /* Include DM constants      */


/* Check to see if the file has been included already.  */

#ifndef DM_EXTR
#define DM_EXTR


/*  Initialization functions.  */

void            DMI_Initialize(void);

/* Core processing functions.  */

STATUS          IP51_DMC_Create_Memory_Pool(IP51_MEMORY_POOL *pool_ptr, char *name, 
                        void *start_address, unsigned int pool_size,
                        unsigned int min_allocation);
STATUS          IP51_DMC_Delete_Memory_Pool(IP51_MEMORY_POOL *pool_ptr);
STATUS          IP51_DMC_Allocate_Memory(IP51_MEMORY_POOL *pool_ptr, 
                     void **return_pointer, unsigned int size);
STATUS          IP51_DMC_Deallocate_Memory(void *memory);

#endif






⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?