Improved code clarity by moving the API macros definitions to the support function declarations.

This commit is contained in:
oliverschmidt 2006-08-14 23:46:43 +00:00
parent bace5b3481
commit 56b07d90a6
1 changed files with 6 additions and 1 deletions

View File

@ -30,11 +30,16 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: dll-loader.h,v 1.1 2006/08/13 16:49:43 oliverschmidt Exp $
* $Id: dll-loader.h,v 1.2 2006/08/14 23:46:43 oliverschmidt Exp $
*/
#ifndef __DLL_LOADER_H__
#define __DLL_LOADER_H__
#define LOADER_LOAD(name, arg) dll_loader_load(name, arg);
#define LOADER_UNLOAD() dll_loader_unload((void *)process_load)
#define LOADER_LOAD_DSC(name) dll_loader_load_dsc(name)
#define LOADER_UNLOAD_DSC(dsc) dll_loader_unload_dsc(dsc)
CCI int dll_loader_load(char *name, char *arg);
CCI void dll_loader_unload(void *addr);
CCI struct dsc *dll_loader_load_dsc(char *name);