The various routines are prefixed by CIMD.
$Log$
+ Revision 1.1.1.2 2002/04/03 01:44:15 short
+ Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
+
Revision 1.1.1.1 2002/04/03 00:08:03 short
Found in "gnokii-working" directory, some November-patches version
static void CIMD_RX_Char(char rx_byte);
static void CIMD_SigHandler(int status);
-static bool CIMD_OpenSerial(void);
+static bool CIMD_OpenSerial(GSM_ConnectionType connection);
GSM_Phone phone_cimd; /* forward declaration */
}
#else
SAFE_STRNCPY_SIZEOF(PortDevice,state->Link.PortDevice);
- if (!CIMD_OpenSerial())
+ if (!CIMD_OpenSerial(state->Link.ConnectionType))
return(GE_INTERNALERROR);
#endif
/* Called by initialisation code to open comm port in asynchronous mode. */
-static bool CIMD_OpenSerial(void)
+static bool CIMD_OpenSerial(GSM_ConnectionType connection)
{
int result;
/* Open device. */
- result = device_open(PortDevice, false/*with_odd_parity*/, true/*with_async*/, -1/*with_hw_handshake*/, GCT_Serial);
+ result = device_open(PortDevice, false/*with_odd_parity*/, true/*with_async*/, -1/*with_hw_handshake*/, connection);
if (!result) {
perror(_("Couldn't open CIMD device"));