|
|
1.1 ! root 1: #ifndef __XFER_DOT_H ! 2: #define __XFER_DOT_H ! 3: ! 4: /* ! 5: * _XFER.H 5.20A June 8, 1995 ! 6: * ! 7: * The Greenleaf Comm Library ! 8: * ! 9: * Copyright (C) 1984-1995 Greenleaf Software Inc. All Rights Reserved. ! 10: * ! 11: * NOTES ! 12: * ! 13: * This header file has the declarations necessary for accessing the "private" ! 14: * transfer routines. Every private routine has a name that starts with ! 15: * an underscore. Since the private routines are actually found in three ! 16: * different files, there is no way to make them truly private, but the ! 17: * high end user would be best off just ignoring these routines. ! 18: * ! 19: * MODIFICATIONS ! 20: * ! 21: * December 12, 1992 4.00A : Initial release ! 22: * ! 23: */ ! 24: ! 25: #include "xfer.h" ! 26: ! 27: void GF_CONV _YmodemReceive( XFER *xmodem ); ! 28: void GF_CONV _XmodemReceive( XFER *xmodem ); ! 29: void GF_CONV _ZmodemReceive( XFER *zmodem ); ! 30: ! 31: void GF_CONV _YmodemSend( XFER *xmodem ); ! 32: void GF_CONV _XmodemSend( XFER *xmodem ); ! 33: void GF_CONV _ZmodemSend( XFER *zmodem ); ! 34: ! 35: int GF_CONV _XferInitialize( XFER *xfer ); ! 36: int GF_CONV _XferOpenFile( XFER *xfer ); ! 37: void GF_CONV _XferCleanup( XFER *xfer ); ! 38: int GF_CONV _XferFlushInput( XFER *xfer ); ! 39: int GF_CONV _XferAbortKeyPressed( XFER *xfer ); ! 40: void GF_CDECL _XferMessage( XFER *xfer, const char *format, ... ); ! 41: ! 42: int GF_CONV _AsciiSend( XFER *ascii ); ! 43: int GF_CONV _AsciiReceive( XFER *ascii ); ! 44: ! 45: int GF_CONV _KermitSendPacket( XFER *kermit, char type, int length, ! 46: char *buffer ); ! 47: char GF_CONV _KermitReceivePacket( XFER *kermit ); ! 48: int GF_CONV _KermitInitParameters( XFER *kermit, char data[ 10 ] ); ! 49: int GF_CONV _KermitUpdateErrorCount( XFER *kermit ); ! 50: void GF_CONV _KermitLoadInitParameters( XFER *kermit ); ! 51: void GF_CONV _KermitCleanup( XFER *xfer ); ! 52: ! 53: int GF_CONV _KermitReceive( XFER *kermit ); ! 54: int GF_CONV _KermitSend( XFER *kermit ); ! 55: ! 56: int GF_CONV _WriteCharProtocol( XFER *xmodem, int c ); ! 57: int GF_CONV _WriteBufferProtocol( XFER *xmodem, char *buffer, int length ); ! 58: ! 59: #if defined( GF_WINDOWS ) ! 60: void GF_CONV _WindowsXferDisplayIdle( XFER *xmodem ); ! 61: void GF_CONV CLFileTransferAbort( void ); ! 62: int GF_CONV _SetIdleDisplay( HWND hIdle ); ! 63: #endif ! 64: ! 65: ! 66: /***********************The usual Kermit macros****************************/ ! 67: ! 68: #define tochar( x ) ( ( x ) + 32 ) /* Tag: File Xfer private */ ! 69: #define unchar( x ) ( ( x ) - 32 ) /* Tag: File Xfer private */ ! 70: #define ctl( x ) ( ( x ) ^ (unsigned char) 64 ) /* Tag: File Xfer private */ ! 71: ! 72: extern int _DefaultAbortKey; ! 73: extern FILE * ( GF_CONV * _XferFileOpenFunctionPtr ) ! 74: ( XFER *status, ! 75: char *name, ! 76: char *mode ); ! 77: extern int ( GF_CONV * _AbortXferFunctionPtr )( XFER *status ); ! 78: ! 79: #endif /* #ifndef __XFER_DOT_H */ ! 80:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.