=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/oxKan0.h,v retrieving revision 1.3 retrieving revision 1.8 diff -u -p -r1.3 -r1.8 --- OpenXM/src/kan96xx/plugin/oxKan0.h 2000/12/03 07:29:39 1.3 +++ OpenXM/src/kan96xx/plugin/oxKan0.h 2004/02/23 09:03:43 1.8 @@ -1,8 +1,8 @@ -/* $OpenXM: OpenXM/src/kan96xx/plugin/oxKan0.h,v 1.2 2000/01/16 07:55:47 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/plugin/oxKan0.h,v 1.7 2003/11/19 01:02:39 takayama Exp $ */ /* ox_kan0.h */ -#define mymalloc(n) malloc(n) -#define myfree(p) free(p) +#define mymalloc(n) sGC_malloc(n) +#define myfree(p) sGC_free(p) typedef FILE2 * ox_stream; int socketOpen(char *serverName,int portNumber); @@ -66,8 +66,9 @@ typedef struct oxclient { NULL means no restriction.*/ int engineByteOrder; int controlByteOrder; + int engineID; } oxclient; -#define N_OF_CLIENT_FIELDS 13 /* If you add new field to struct oxclient +#define N_OF_CLIENT_FIELDS 14 /* If you add new field to struct oxclient do not forget to increase the number.*/ /* Change also, oxInitClient, oxCreateClient(2), oxCreateClientFile oxmisc.c oxClientToObject, oxObjectToClient oxmisc2.c @@ -91,7 +92,7 @@ oxclientp oxCreateClientFile(char *fileName,char *mode oxclientp oxCreateClient2(int fdstream,int portStream, int fdcontrol,int portControl,int ipmask,char *pass); int oxSetByteOrder(int fd); -int oxTellMyByteOrder(int fd); +int oxTellMyByteOrder(int fdOut,int fdIn); char *oxGenPass(void); @@ -150,3 +151,7 @@ int oxWritePortFile(int func,int port,char *fname); char *oxGenPortFile(void); int oxRemovePortFile(void); +#define MAX_N_OF_CLIENT 1024 +int oxGetClientID(); + +char *oxFIDtoStr(int id);