|
|
1.1 root 1: /*
2: * INDEP.H 5.20A June 8, 1995
3: *
4: * The Greenleaf Comm Library
5: *
6: * Copyright (C)1986-1995 Greenleaf Software Inc. All Rights Reserved.
7: *
8: * NOTES
9: *
10: * This file contains the prototpes for the language independent
11: * functions.
12: *
13: * MODIFICATIONS
14: *
15: * October 12, 1994 5.10A : Initial release
16: *
17: */
18: #ifndef _INDEP_DOT_H
19: #define _INDEP_DOT_H
20:
21: #ifndef COMMLIB_DOT_H
22: #include "commlib.h"
23: #endif
24:
25: #ifdef __cplusplus
26: extern "C" {
27: #endif
28:
29: int GF_CONV CLGetPortStatus( PORT GF_DLL_FAR *port );
30: int GF_CONV CLGetPortHandle( PORT GF_DLL_FAR *port );
31: int GF_CONV CLGetPortDriverType( PORT GF_DLL_FAR *port );
32: int GF_CONV CLGetPortDialingMethod( PORT GF_DLL_FAR *port );
33: int GF_CONV CLGetPortCount( PORT GF_DLL_FAR *port );
34:
35: int GF_CONV CLReadChar( PORT GF_DLL_FAR *port );
36: int GF_CONV CLPeekChar( PORT GF_DLL_FAR *port );
37: int GF_CONV CLWriteChar( PORT GF_DLL_FAR *port, int c );
38: int GF_CONV CLPortClose( PORT GF_DLL_FAR *port );
39: int GF_CONV CLPortSet( PORT GF_DLL_FAR *port,
40: long baud_rate,
41: char *parity,
42: int word_length,
43: int stop_bits );
44: int GF_CONV CLUseXonXoff( PORT GF_DLL_FAR *port, int control );
45: int GF_CONV CLUseRtsCts( PORT GF_DLL_FAR *port, int control );
46: int GF_CONV CLUseDtrDsr( PORT GF_DLL_FAR *port, int control );
47: int GF_CONV CLSetDtr( PORT GF_DLL_FAR *port, int control );
48: int GF_CONV CLSetRts( PORT GF_DLL_FAR *port, int control );
49: long GF_CONV CLSpaceFreeInTXBuffer( PORT GF_DLL_FAR *port );
50: long GF_CONV CLSpaceUsedInTXBuffer( PORT GF_DLL_FAR *port );
51: long GF_CONV CLSpaceFreeInRXBuffer( PORT GF_DLL_FAR *port );
52: long GF_CONV CLSpaceUsedInRXBuffer( PORT GF_DLL_FAR *port );
53: int GF_CONV CLClearTXBuffer( PORT GF_DLL_FAR *port );
54: int GF_CONV CLWriteBuffer( PORT GF_DLL_FAR *port, char GF_DLL_FAR *buffer, unsigned int count );
55: int GF_CONV CLReadBuffer( PORT GF_DLL_FAR *port, char GF_DLL_FAR *buffer, unsigned int count );
56: #if defined( GF_WINDOWS ) || defined( GF_WIN32 )
57: int GF_CONV CLDumpPortStatusVB( PORT GF_DLL_FAR *port, HWND status_window );
58: #endif
59: int GF_CONV CLSendBreak( PORT GF_DLL_FAR *port, int milliseconds );
60: int GF_CONV CLGetModemStatus( PORT GF_DLL_FAR *port );
61: int GF_CONV CLGetLineStatus( PORT GF_DLL_FAR *port );
62: int GF_CONV CLClearLineStatus( PORT GF_DLL_FAR *port );
63: int GF_CONV CLBlock( PORT GF_DLL_FAR *port, int control );
64: void GF_CONV CLClearError( PORT GF_DLL_FAR *port );
65:
66: #ifdef __cplusplus
67: }
68: #endif
69:
70: #endif
71:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.