Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

IMC.c

Go to the documentation of this file.
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 

Generated on Sun Dec 23 15:20:37 2001 for ANet by doxygen 1.2.12 written by Dimitri van Heesch, © 1997-2001

SourceForge
Logo