This commit was generated by cvs2svn to compensate for changes in r164,
[gnokii.git] / common / cimd.c
index e213170..5784020 100644 (file)
@@ -17,6 +17,9 @@
   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
 
@@ -757,7 +760,7 @@ static GSM_Error CIMD_PhoneSetup(void)
 
 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 */
 
@@ -780,7 +783,7 @@ int rtn;
 }
 #else
        SAFE_STRNCPY_SIZEOF(PortDevice,state->Link.PortDevice);
-       if (!CIMD_OpenSerial())
+       if (!CIMD_OpenSerial(state->Link.ConnectionType))
                return(GE_INTERNALERROR);
 #endif
 
@@ -1203,7 +1206,7 @@ static GSM_Error CIMD_Reset(GSM_Data *data, GSM_Statemachine *state)
 
 /* 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;
   
@@ -1221,7 +1224,7 @@ static bool CIMD_OpenSerial(void)
 
        /* 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"));