]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Move prototype for platform_new_connection() to a header file so the
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 6 Jun 2003 10:42:14 +0000 (10:42 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 6 Jun 2003 10:42:14 +0000 (10:42 +0000)
definitions can be checked against it.

[originally from svn r3248]

network.h
proxy.c

index 9a7a50cf54056faae188f68f0bdd568e9ae62b27..46ec6bb746f987531248a9153e9380d61a60f83a 100644 (file)
--- a/network.h
+++ b/network.h
@@ -84,6 +84,12 @@ Socket new_listener(char *srcaddr, int port, Plug plug, int local_host_only,
 SockAddr name_lookup(char *host, int port, char **canonicalname,
                     const Config *cfg);
 
+/* platform-dependent callback from new_connection() */
+Socket platform_new_connection(SockAddr addr, char *hostname,
+                              int port, int privport,
+                              int oobinline, int nodelay, Plug plug,
+                              const Config *cfg);
+
 /* socket functions */
 
 void sk_init(void);                   /* called once at program startup */
diff --git a/proxy.c b/proxy.c
index ed25f1a48c6fa51acb916009da09bc8e34902399..4a2dd19c10724c6dab0bb7c3d5ea887c82283baf 100644 (file)
--- a/proxy.c
+++ b/proxy.c
@@ -349,11 +349,6 @@ SockAddr name_lookup(char *host, int port, char **canonicalname,
     return sk_namelookup(host, canonicalname);
 }
 
-Socket platform_new_connection(SockAddr addr, char *hostname,
-                              int port, int privport,
-                              int oobinline, int nodelay, Plug plug,
-                              const Config *cfg);
-
 Socket new_connection(SockAddr addr, char *hostname,
                      int port, int privport,
                      int oobinline, int nodelay, Plug plug,