diff lib/gftp.h @ 125:b875de05c22d

2003-4-8 Brian Masney <masneyb@gftp.org> * src/text/gftp-text.c lib/misc.c - moved r_gethostbyname() and r_getservbyname() to lib/misc.c. Now uses GMutex functions * lib/config_file.c lib/gftp.h lib/options.h - added config variable type textcombo. default_protocol uses this * lib/config_file.c (gftp_read_config_file) - when reading in the list of supported protocols, add the protocol names to the list associated with default_protocol. Also, don't try to have default_protocol fall back to FTP. The code that uses this will fall back properly * lib/gftp.h (struct gftp_transfer) - renamed node to user_data * lib/misc.c lib/gftp.h - moved parse_attribs() from src/gtk/transfer.c to misc.c. Renamed to gftp_parse_attribs() * lib/protocols.c lib/gftp.h - moved get_status() from src/gtk/transfer.c to protocols.c. Renamed to gftp_get_transfer_status(). Uses GMutex functions
author masneyb
date Tue, 08 Apr 2003 22:28:17 +0000
parents 65048c959029
children 1e65871fdfa1
line wrap: on
line diff
--- a/lib/gftp.h	Tue Apr 08 01:43:33 2003 +0000
+++ b/lib/gftp.h	Tue Apr 08 22:28:17 2003 +0000
@@ -352,7 +352,7 @@
   GStaticMutex statmutex,
                structmutex;
 
-  void *node;
+  void *user_data;
   void *clist;
 };
 
@@ -437,7 +437,7 @@
   gftp_option_type_textbox	= 9,
   gftp_option_type_subtree	= 10,
   gftp_option_type_intcombo	= 11,
-  gftp_option_type_charcombo	= 12,
+  gftp_option_type_textcombo	= 12,
   gftp_option_type_table	= 13
 } gftp_option_type_enum;
 
@@ -616,6 +616,8 @@
 					  int column, 
 					  int asds );
 
+mode_t gftp_parse_attribs 		( char *attribs );
+
 /* protocols.c */
 #define GFTP_FTP_NUM				0
 #define GFTP_HTTP_NUM				1
@@ -820,5 +822,8 @@
 void gftp_calc_kbs 			( gftp_transfer * tdata, 
 					  ssize_t num_read );
 
+int gftp_get_transfer_status 		( gftp_transfer * tdata, 
+					  ssize_t num_read );
+
 #endif