diff lib/gftp.h @ 146:782f84694489

2003-4-25 Brian Masney <masneyb@gftp.org> * lib/rfc959.c - added IPV6 support (RFC2428). The only part of the project that isn't IPV6 ready is the proxy comparsion functions. * lib/protocols.c - change the hints.ai_family paramater from AF_INET to PF_UNSPEC * lib/gftp.h lib/misc.c lib/pty.c - moved the functionality of pty[ms]_open() to pty.c. Combined these 2 functions into open_ptys(), and there is one defined for each system type (lots of #define's in this file!) * lib/Makefile.am po/POTFILES.in - added pty.c * lib/sshv2.c - when searching for the password prompt, omit the first character in case it is capitalized. Also, use the new function open_ptys() * configure.in - search for openpty in -lutil. Also, define HAVE_OPENPTY if this function is present on the system
author masneyb
date Sat, 26 Apr 2003 15:26:42 +0000
parents c363b08e0118
children 2f15b3000dbc
line wrap: on
line diff
--- a/lib/gftp.h	Fri Apr 25 12:53:23 2003 +0000
+++ b/lib/gftp.h	Sat Apr 26 15:26:42 2003 +0000
@@ -80,6 +80,13 @@
 #define AF_LOCAL AF_UNIX
 #endif
 
+#ifdef HAVE_GETADDRINFO
+#define HAVE_IPV6
+#define GFTP_GET_AI_FAMILY(request)	(request->hostp->ai_family)
+#else
+#define GFTP_GET_AI_FAMILY(request)	AF_INET
+#endif
+
 /* We need the major() and minor() macros in the user interface. If they aren't
    defined by the system, we'll just define them here. */
 #ifndef major
@@ -610,14 +617,6 @@
 
 gftp_request * copy_request 		( gftp_request * req );
 
-int ptym_open 				( char *pts_name,
-					  size_t len );
-
-int ptys_open 				( int fdm, 
-					  char *pts_name );
-
-int tty_raw 				( int fd );
-
 GList * gftp_sort_filelist 		( GList * filelist, 
 					  int column, 
 					  int asds );
@@ -835,5 +834,12 @@
 int gftp_get_transfer_status 		( gftp_transfer * tdata, 
 					  ssize_t num_read );
 
+/* pty.c */
+int open_ptys 				( gftp_request * request, 
+					  int *fdm, 
+					  int *fds );
+
+int tty_raw 				( int fd );
+
 #endif