[Anet-checkins] CVS: ANet/ANet_Daemon/Common ANetCommon.h,NONE,1.1 Memory.h,1.2,1.3 Modules.h,1.3,1.
Status: Abandoned
Brought to you by:
benad
From: Benoit N. <be...@us...> - 2001-11-05 23:27:06
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Common In directory usw-pr-cvs1:/tmp/cvs-serv7895/Common Modified Files: Memory.h Modules.h Packets.h XMLCommon.h Added Files: ANetCommon.h Log Message: Added linked lists, Makefile, and did some cleanup --- NEW FILE: ANetCommon.h --- /****************************************************************** ANet_Daemon/Common/ANetCommon.h Common declarations for the ANet daemon. Part of the ANet project. Distributed under GPL: http://www.gnu.org/copyleft/gpl.html ******************************************************************/ #ifndef ANET_COMMON #define ANET_COMMON #ifndef __MACTYPES__ typedef unsigned char UInt8; typedef signed char SInt8; typedef unsigned short UInt16; typedef signed short SInt16; typedef unsigned long UInt32; typedef signed long SInt32; #define __MACTYPES__ #endif //__MACTYPES__ #endif Index: Memory.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Memory.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Memory.h 2001/10/14 23:16:35 1.2 --- Memory.h 2001/11/05 23:27:03 1.3 *************** *** 11,14 **** --- 11,16 ---- #define ANET_MEMORY + #include "ANetCommon.h" + typedef UInt32 ANetMemoryTag; Index: Modules.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Modules.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Modules.h 2001/10/27 15:44:14 1.3 --- Modules.h 2001/11/05 23:27:03 1.4 *************** *** 11,19 **** #define ANET_MODULES #include "Memory.h" #include "Packets.h" #include "XMLCommon.h" ! typedef struct { char *name; //Symbol name (can be NULL) UInt32 ID; //Module function ID --- 11,21 ---- #define ANET_MODULES + #include "ANetCommon.h" #include "Memory.h" #include "Packets.h" #include "XMLCommon.h" + #include "LinkedLists.h" ! typedef struct ANetFunctionMap { char *name; //Symbol name (can be NULL) UInt32 ID; //Module function ID *************** *** 88,92 **** typedef UInt32(*ANetClusterFilterMainFuncPtr)(UInt32 nbrPackets, UInt8 *packets, ANetMemoryTag packetsToDelete, ANetMemoryTag connectionsToDelete); ! typedef UInt32(*ANetClusterFilterForcedFuncPtr)(UInt nbrPackets, UInt8 *packets, UInt32 maxBytes, ANetMemoryTag packetsToDelete, ANetMemoryTag connectionsToDelete); --- 90,94 ---- typedef UInt32(*ANetClusterFilterMainFuncPtr)(UInt32 nbrPackets, UInt8 *packets, ANetMemoryTag packetsToDelete, ANetMemoryTag connectionsToDelete); ! typedef UInt32(*ANetClusterFilterForcedFuncPtr)(UInt32 nbrPackets, UInt8 *packets, UInt32 maxBytes, ANetMemoryTag packetsToDelete, ANetMemoryTag connectionsToDelete); Index: Packets.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/Packets.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Packets.h 2001/10/14 23:16:35 1.2 --- Packets.h 2001/11/05 23:27:03 1.3 *************** *** 11,14 **** --- 11,15 ---- #define ANET_PACKETS + #include "ANetCommon.h" #include "Memory.h" Index: XMLCommon.h =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Common/XMLCommon.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XMLCommon.h 2001/10/14 23:16:35 1.3 --- XMLCommon.h 2001/11/05 23:27:03 1.4 *************** *** 11,17 **** #define XML_COMMON #include "Memory.h" ! typedef struct { UInt8 *name; UInt8 *value; --- 11,18 ---- #define XML_COMMON + #include "ANetCommon.h" #include "Memory.h" ! typedef struct ANetAttribute { UInt8 *name; UInt8 *value; *************** *** 19,43 **** typedef struct ANetAttribListItem { ! ANetAttribListItem *next; ANetAttribute attribute; } ANetAttribListItem; - typedef struct ANetTagListItem { - ANetTagListItem *next; - ANetTag tag; - } - typedef struct ANetTag { UInt8 *name; // C string ! ANetTag *parent; void *children; // typecast to ANetTagListItem* ANetAttribListItem *attributes; } ANetTag; typedef UInt32 ANetAttributeID; typedef UInt32 ANetTagID; // TagIDs are used to "hide" the implementation of the XML parser. // Initially, they are all typecasted pointers, but later on ! // they won't point directly to a memory location --- 20,44 ---- typedef struct ANetAttribListItem { ! struct ANetAttribListItem *next; ANetAttribute attribute; } ANetAttribListItem; typedef struct ANetTag { UInt8 *name; // C string ! struct ANetTag *parent; void *children; // typecast to ANetTagListItem* ANetAttribListItem *attributes; } ANetTag; + typedef struct ANetTagListItem { + struct ANetTagListItem *next; + ANetTag tag; + } ANetTagListItem; + typedef UInt32 ANetAttributeID; typedef UInt32 ANetTagID; // TagIDs are used to "hide" the implementation of the XML parser. // Initially, they are all typecasted pointers, but later on ! // they won't point directly to a memory location. |