=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/ox_toolkit.h,v retrieving revision 1.6 retrieving revision 1.9 diff -u -p -r1.6 -r1.9 --- OpenXM/src/ox_toolkit/ox_toolkit.h 2000/11/24 05:49:26 1.6 +++ OpenXM/src/ox_toolkit/ox_toolkit.h 2000/11/28 22:11:14 1.9 @@ -1,5 +1,5 @@ /* -*- mode: C -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.5 2000/11/18 04:49:55 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.8 2000/11/28 04:24:12 ohara Exp $ */ #ifndef _OX_TOOLKIT_H_ @@ -15,12 +15,24 @@ #define __inline__ #endif -/* Open Xm File Descripter */ +/* Mathcap Local Database */ +typedef struct { + int tag; + int flag; +} table; + +typedef struct mathcap { + table *cmotbl; + table *smtbl; +} mathcap; + +/* OpenXM File Descripter */ typedef struct OXFILE{ int fd; int (*send_int32)(struct OXFILE *oxfp, int int32); int (*receive_int32)(struct OXFILE *oxfp); int serial_number; + int received_serial_number; struct OXFILE *control; /* pointer to his control server. */ struct mathcap *mathcap; int error; @@ -233,6 +245,7 @@ void oxf_setopt(OXFILE *oxfp, int mode); void oxf_determine_byteorder_client(OXFILE *oxfp); void oxf_determine_byteorder_server(OXFILE *oxfp); OXFILE *oxf_execute_cmd(OXFILE *oxfp, char *cmd); +cmo_mathcap *oxf_cmo_mathcap(OXFILE *oxfp); void oxf_mathcap_update(OXFILE *oxfp, cmo_mathcap *ob); /* example: which("xterm", getenv("PATH")); */