00001 /****************************************************************** 00002 ANet_Daemon/Core/IMC.c 00003 Inter-module communication. 00004 00005 Part of the run-time wrapper of the ANet project. 00006 00007 Distributed under GPL: http://www.gnu.org/copyleft/gpl.html 00008 ******************************************************************/ 00009 00010 #include "IMC.h" 00011 00024 ANetMemoryTag currentGlobals; 00025 00026 UInt32 CallModuleFunction(char *moduleName, char *instanceName, 00027 UInt32 funcID, ...) 00028 { 00029 //find the instance in the hash 00030 //use the module info in the list to find the 00031 // function pointer 00032 //set up currentGlobals (store previous value in a 00033 // *local* variable, set up new value) 00034 //call the function using the arguments 00035 //restore previous value of currentGlobals 00036 //return module function's returned value 00037 } 00038 00039 ANetMemoryTag ANetGetGlobals() 00040 { 00041 return currentGlobals; 00042 } 00043