X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Fcimd.c;h=57840203deaa7c960ebb1555b993306136353c5b;hp=e213170a6f7c8bd72cbecfdafa1452c6a7f5124c;hb=refs%2Fheads%2Fats;hpb=e1413f172e2c080b63889db8a957f7f7c984a33e diff --git a/common/cimd.c b/common/cimd.c index e213170..5784020 100644 --- a/common/cimd.c +++ b/common/cimd.c @@ -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 : 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"));