/*--------------------------------------------------------------*/ /* NMTAPI.H */ /* @@@ @@@@ @@@ */ /* NMT API header file @ @ @ @ @ */ /* @@@@@ @@@@ @ */ /* @ @ @ @ */ /* @ @ @ @@@ */ /*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/ /* PTT NMT-APICOM+ */ /* C.M.G. Informatietechniek B.V. */ /*--------------------------------------------------------------*/ /* This is the confidential, unpublished property of */ /* C.M.G. */ /* Receipt or possession of it does not convey any rights */ /* to divulge, reproduce, use, or allow others to use it */ /* without the specific written authorization of C.M.G. */ /* Any use must conform strictly to a license agreement */ /* between the user and C.M.G. */ /*--------------------------------------------------------------*/ /* AUDIT: */ /* nn who when where what */ /* == === ======= ======== =====================================*/ /* 00 AW 11Aug96 -------- initial coding */ /*--------------------------------------------------------------*/ #ifndef _NMTAPI_H_INCLUDED #define _NMTAPI_H_INCLUDED unsigned long nmt_api_init ( char *zinitfile ); unsigned long nmt_api_uninit ( void ); unsigned long nmt_api_open ( void ); unsigned long nmt_api_close ( void ); unsigned long nmt_api_send ( char * zcmd ); unsigned long nmt_api_receive ( char *zresp, int *zresplen, int zflags ); unsigned long nmt_api_send_file ( char *zsourcefile, char *zdestfile, int zdestination ); unsigned long nmt_api_receive_file ( char *zsourcefile, char *zdestfile, int zflags, int zdestination ); unsigned long nmt_api_get_socket ( int *zcmd_socket ); /*--------------------------------------------------------------*/ /* defines */ /*--------------------------------------------------------------*/ #define MAXLEN_FILENAME (80) #define NMT_API_GCIC (0) #define NMT_API_NMT_SIS (1) /*--------------------------------------------------------------*/ /* error codes */ /*--------------------------------------------------------------*/ #define ERR_API_NONE 000 #define ERR_API_INIT 101 #define ERR_API_AUTHORIZE 102 #define ERR_API_OPEN 103 #define ERR_API_ABORT 104 #define ERR_API_SEND 105 #define ERR_API_RECEIVE 106 #define ERR_API_ARGUMENT 107 #define ERR_API_MAXCMD 108 #define ERR_API_RECLEN 109 #define ERR_API_CLOSED 110 #define ERR_API_NO_MEMORY 111 #define ERR_API_PARSE 118 #define ERR_API_FATAL 119 #define ERR_COM_INIT 121 #define ERR_COM_SEND 122 #define ERR_COM_RECEIVE 123 #define ERR_COM_TIMEOUT 124 #define ERR_COM_SEND_FILE 125 #define ERR_COM_RECEIVE_FILE 126 #define ERR_COM_RETRY 138 #define ERR_COM_FATAL 139 #define ERR_LOG_NOTOPEN 151 #define ERR_FILE_TRANSFER 152 #define ERR_FILE_NOT_FOUND 161 #define ERR_FILE_STAT 162 #define ERR_READ_FAILED 163 #define ERR_SEND_TRANSFER 164 #define ERR_RECV_TRANSFER 165 #define ERR_RECV_BUF_OVERFLOW 171 #define ERR_CMD_CMDNTFND 201 #define ERR_CMD_SYNTAX 202 #define ERR_CMD_PRIV 203 #define ERR_SYS_CLOSED 204 #define ERR_CMD_SIMERROR 211 #define ERR_CMD_RIDERROR 212 #define ERR_CMD_SAKERROR 213 #define ERR_CMD_ARERROR 214 #define ERR_CMD_SIMMULTIPLE 215 #define ERR_CMD_SIMMAXMULT 216 #define ERR_CMD_SIMNTFND 221 #define ERR_CMD_RIDNTFND 222 #define ERR_CMD_ARNTFND 223 #define ERR_CMD_SIMALRACT 231 #define ERR_CMD_RIDALRACT 232 #define ERR_CMD_UNSPEC 298 #define ERR_CMD_FATAL 299 #define ERR_TPS_INVTYP 301 #define ERR_TPS_INVSEQ 302 #define ERR_TPS_INVDST 303 #define ERR_TPS_INVSRC 304 #define ERR_TPS_INVUSR 305 #define ERR_TPS_INVNUM 306 #define ERR_TPS_INVTIM 307 #define ERR_TPS_INVRES 308 #define ERR_TPS_INVDAT 309 #define ERR_COM_ALT_PATH 800 #define ERR_COM_NO_ROUTE 801 #define WARN_COM_ALT_PATH 802 #define ERR_DUM_INIT 991 #define ERR_DUM_FATAL 999 #endif