git://git.jankratochvil.net
/
gnokii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
[gnokii.git]
/
common
/
cimd.c
diff --git
a/common/cimd.c
b/common/cimd.c
index
e213170
..
5784020
100644
(file)
--- a/
common/cimd.c
+++ b/
common/cimd.c
@@
-17,6
+17,9
@@
The various routines are prefixed by CIMD.
$Log$
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
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 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 */
GSM_Phone phone_cimd; /* forward declaration */
@@
-780,7
+783,7
@@
int rtn;
}
#else
SAFE_STRNCPY_SIZEOF(PortDevice,state->Link.PortDevice);
}
#else
SAFE_STRNCPY_SIZEOF(PortDevice,state->Link.PortDevice);
- if (!CIMD_OpenSerial())
+ if (!CIMD_OpenSerial(
state->Link.ConnectionType
))
return(GE_INTERNALERROR);
#endif
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. */
/* 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;
{
int result;
@@
-1221,7
+1224,7
@@
static bool CIMD_OpenSerial(void)
/* Open device. */
/* 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"));
if (!result) {
perror(_("Couldn't open CIMD device"));