Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
[gnokii.git] / common / devices / unixserial.c
index 9594d89..80b4b7a 100644 (file)
@@ -11,6 +11,9 @@
   Released under the terms of the GNU GPL, see file COPYING for more details.
 
   $Log$
+  Revision 1.1.1.6  2002/04/03 01:44:15  short
+  Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
+
   Revision 1.1.1.5  2002/04/03 00:08:07  short
   Found in "gnokii-working" directory, some November-patches version
 
@@ -113,7 +116,7 @@ static void device_script_cfgfunc(const char *section,const char *key,const char
   setenv(key,value,1/*overwrite*/);    /* errors ignored */
 }
 
-static int device_script(int fd, const char *section)
+int device_script(int fd, const char *section)
 {
 pid_t pid;
 const char *scriptname = CFG_Get(CFG_Info, "global", section);
@@ -159,7 +162,7 @@ int status;
 int serial_close_all_openfds[0x10];    /* -1 when entry not used, fd otherwise */
 int serial_close(int __fd);
 
-static void serial_close_all(void)
+void serial_close_all(void)
 {
   int i;
 
@@ -169,7 +172,7 @@ static void serial_close_all(void)
       serial_close(serial_close_all_openfds[i]);
 }
 
-static void unixserial_interrupted(int signo)
+void unixserial_interrupted(int signo)
 {
        exit(EXIT_FAILURE);
        /* NOTREACHED */