anet-checkins Mailing List for ANet (Page 4)
Status: Abandoned
Brought to you by:
benad
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(17) |
Dec
(29) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(29) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Benoit N. <be...@us...> - 2001-11-05 23:24:51
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Common/Lists In directory usw-pr-cvs1:/tmp/cvs-serv7255/Lists Log Message: Directory /cvsroot/anet/ANet/ANet_Daemon/Common/Lists added to the repository |
From: Benoit N. <be...@us...> - 2001-10-27 15:44:17
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Core In directory usw-pr-cvs1:/tmp/cvs-serv1025/Core Added Files: IMC.c ModuleLoader.c StubModule.c Log Message: "" --- NEW FILE: IMC.c --- #include "Modules.h" #include "IMC.h" #include "StubModule.h" ANetMemoryTag currentGlobals; UInt32 CallModuleFunction(char *moduleName, char *instanceName, UInt32 funcID, ...) { //find the instance in the hash //use the module info in the list to find the // function pointer //set up currentGlobals (store previous value in a // *local* variable, set up new value) //call the function using the arguments //restore previous value of currentGlobals //return module function's returned value } ANetMemoryTag ANetGetGlobals() { return currentGlobals; } --- NEW FILE: ModuleLoader.c --- #include "Modules.h" #include "IMC.h" //inter-module communication #include "StubModule.h" // define some list of ANetModuleInfo here // also define some hash of (moduleName,instanceName) -> ANetMemoryTag here void Test() { LoadModules(); CreateInstance("StubModule", "Stub1"); CreateInstance("StubModule", "Stub2"); CallModuleFunction("StubModule", "Stub1", kStubMain, 10); } void LoadModules() { LoadInternalModule(StubModuleLoad); } void CreateInstance(char *moduleName, char *instanceName) { //store info in hash //call the module's ANetModuleCreateInstanceFuncPtr //store the instance's globals (g) in hash } void LoadInternalModule(ANetModuleLoadFuncPtr func) { //call func //store info in list } --- NEW FILE: StubModule.c --- #include <iostream.h> #include "Modules.h" #include "IMC.h" #include "StubModule.h" #include "XMLCommon.h" // for now, assume that ANetMemoryTag is an int // This is called when the module is loaded UInt32 StubModuleLoad(ANetModuleInfo *modInfo) { ANetAddModuleName(modInfo, "StubModule"); ANetFunctionMap newInstance = {"StubCreate", kModuleCreateInstance, StubCreate}; ANetFunctionMap main = {"StubMain", kStubMain, StubMain}; ANetFunctionMap func1 = {"StubFunc1", kStubFunc1, StubFunc1}; ANetFunctionMap func2 = {"StubFunc2", kStubFunc2, StubFunc2}; ANetAddFunctionMap(modInfo, newInstance); ANetAddFunctionMap(modInfo, main); ANetAddFunctionMap(modInfo, func1); ANetAddFunctionMap(modInfo, func2); return 0; } // This is called when a new instance is created UInt32 StubCreate(ANetTagID tag, ANetMemoryTag *g) { *g = random() % 30; return 0; } UInt32 StubMain(UInt32 val) { printf("MAIN: Argument value: %d\n", val); printf("MAIN: Global value: %d\n", ANetGetGlobals()); printf("Calling my func1...\n"); StubFunc1(val); return 0; } UInt32 StubFunc1(UInt32 val) { printf("FUNC1: Argument value: %d\n", val); printf("FUNC1: Global value: %d\n", ANetGetGlobals()); printf("Calling Stub2's Func2 with our global as argument...\n"); CallModuleFunction("StubModule", "Stub2", kStubFunc2, ANetGetGlobals()); printf("FUNC1: Global value: %d\n", ANetGetGlobals()); return 0; } UInt32 StubFunc2(UInt32 val) { printf("FUNC2: Argument value: %d\n", val); printf("FUNC2: Global value: %d\n", ANetGetGlobals()); return 0; } |
From: Benoit N. <be...@us...> - 2001-10-27 15:44:17
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Common In directory usw-pr-cvs1:/tmp/cvs-serv1025/Common Modified Files: Modules.h Log Message: "" Index: Modules.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Modules.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Modules.h 2001/10/14 23:16:35 1.2 --- Modules.h 2001/10/27 15:44:14 1.3 *************** *** 48,52 **** kBandwidthManagerMain = 10, //ANetBandwidthManagerMainFuncPtr ! kCoreModuleMain = 11 //ANetCoreModuleMainFuncPtr }; --- 48,56 ---- kBandwidthManagerMain = 10, //ANetBandwidthManagerMainFuncPtr ! kCoreModuleMain = 11, //ANetCoreModuleMainFuncPtr ! ! kStubMain = 50, //ANetStubMainFuncPtr ! kStubFunc1 = 51, //ANetStubFunc1Ptr ! kStubFunc2 = 52 //ANetStubFunc2Ptr }; *************** *** 107,110 **** --- 111,118 ---- ANetMemoryTag commands); // Output buffers are in the parsed XML. + + typedef UInt32(*ANetStubMainFuncPtr)(UInt32 val); + typedef UInt32(*ANetStubFunc1Ptr)(UInt32 val); + typedef UInt32(*ANetStubFunc2Ptr)(UInt32 val); ANetMemoryTag ANetGetGlobals(); |
From: Benoit N. <be...@us...> - 2001-10-14 23:16:38
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Common In directory usw-pr-cvs1:/tmp/cvs-serv9103 Modified Files: Files.h Memory.h Modules.h Packets.h Utilities.h XMLCommon.h Log Message: "" Index: Files.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Files.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Files.h 2001/10/14 23:02:05 1.1 --- Files.h 2001/10/14 23:16:35 1.2 *************** *** 1,5 **** /****************************************************************** ! ANet_Deamon/Common/Memory.h ! Declarations for memory management in the ANet deamon. Part of the run-time wrapper of the ANet project. --- 1,5 ---- /****************************************************************** ! ANet_Daemon/Common/Files.h ! Declarations for file management in the ANet deamon. Part of the run-time wrapper of the ANet project. Index: Memory.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Memory.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Memory.h 2001/10/13 21:53:12 1.1 --- Memory.h 2001/10/14 23:16:35 1.2 *************** *** 1,4 **** /****************************************************************** ! ANet_Deamon/Common/Memory.h Declarations for memory management in the ANet deamon. --- 1,4 ---- /****************************************************************** ! ANet_Daemon/Common/Memory.h Declarations for memory management in the ANet deamon. *************** *** 18,20 **** UInt32 ResolveMemoryTag(ANetMemoryTag tag, UInt8 **ptr); ! #endif \ No newline at end of file --- 18,20 ---- UInt32 ResolveMemoryTag(ANetMemoryTag tag, UInt8 **ptr); ! #endif Index: Modules.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Modules.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Modules.h 2001/10/13 21:53:12 1.1 --- Modules.h 2001/10/14 23:16:35 1.2 *************** *** 1,4 **** /****************************************************************** ! ANet_Deamon/Common/Modules.h Declarations necessary to allow module linking. --- 1,4 ---- /****************************************************************** ! ANet_Daemon/Common/Modules.h Declarations necessary to allow module linking. Index: Packets.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Packets.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Packets.h 2001/10/13 21:53:12 1.1 --- Packets.h 2001/10/14 23:16:35 1.2 *************** *** 1,4 **** /****************************************************************** ! ANet_Deamon/Common/Memory.h Utility functions for AIPs and commands in the ANet deamon. --- 1,4 ---- /****************************************************************** ! ANet_Daemon/Common/Memory.h Utility functions for AIPs and commands in the ANet deamon. *************** *** 72,74 **** ! #endif \ No newline at end of file --- 72,74 ---- ! #endif Index: Utilities.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Utilities.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Utilities.h 2001/10/13 21:53:12 1.1 --- Utilities.h 2001/10/14 23:16:35 1.2 *************** *** 1,4 **** /****************************************************************** ! ANet_Deamon/Common/Utilities.h Miscellaneous utility functions for modules in the ANet deamon. --- 1,4 ---- /****************************************************************** ! ANet_Daemon/Common/Utilities.h Miscellaneous utility functions for modules in the ANet deamon. Index: XMLCommon.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/XMLCommon.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XMLCommon.h 2001/10/13 22:07:34 1.2 --- XMLCommon.h 2001/10/14 23:16:35 1.3 *************** *** 1,4 **** /****************************************************************** ! ANet_Deamon/Common/XMLCommon.h XML accessor functions --- 1,4 ---- /****************************************************************** ! ANet_Daemon/Common/XMLCommon.h XML accessor functions |
From: Benoit N. <be...@us...> - 2001-10-14 23:02:07
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Common In directory usw-pr-cvs1:/tmp/cvs-serv5991 Added Files: Files.h Log Message: "" --- NEW FILE: Files.h --- /****************************************************************** ANet_Deamon/Common/Memory.h Declarations for memory management in the ANet deamon. Part of the run-time wrapper of the ANet project. Distributed under GPL: http://www.gnu.org/copyleft/gpl.html ******************************************************************/ #ifndef ANET_FILES #define ANET_FILES #endif |
From: Benoit N. <be...@ma...> - 2001-10-14 22:44:18
|
This list will contain logs of changes made in the cvs server for ANet (cvs.anet.sourceforge.net). So, happy log-file-reading! - Benad |
From: Benoit N. <be...@us...> - 2001-10-13 22:07:40
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Common In directory usw-pr-cvs1:/tmp/cvs-serv30718 Modified Files: XMLCommon.h Log Message: "" Index: XMLCommon.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/XMLCommon.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XMLCommon.h 2001/10/13 21:53:12 1.1 --- XMLCommon.h 2001/10/13 22:07:34 1.2 *************** *** 41,44 **** --- 41,45 ---- // they won't point directly to a memory location + // XML ACCESSORS |