=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/ox_toolkit.h,v retrieving revision 1.6 retrieving revision 1.11 diff -u -p -r1.6 -r1.11 --- OpenXM/src/ox_toolkit/ox_toolkit.h 2000/11/24 05:49:26 1.6 +++ OpenXM/src/ox_toolkit/ox_toolkit.h 2003/01/13 12:03:12 1.11 @@ -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.10 2003/01/11 11:42:31 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,10 +245,13 @@ 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")); */ char *which(char *exe, const char *env); char *generate_otp(); +int ox_stderr_init(FILE *fp); +int ox_printf(char *format, ...); #endif /* _OX_TOOLKIT_H_ */