diff lib/gftp.h @ 229:35ae2e80962e

2003-7-22 Brian Masney <masneyb@gftp.org> * lib/config_file.c lib/gftp.h - added gftp_lookup_bookmark_option() and gftp_set_bookmark_option(). Also added _gftp_set_option_value() that is used by the set functions for bookmark and request structures * src/gtk/bookmarks.c - make sure the options are copied over to the new bookmarks. Also show all of the editable toptions for this bookmark entry * src/gtk/options_dialog.c src/gtk/gftp-gtk.h lib/config_file.c lib/gftp.h - improvements to overriding options for each bookmark entry. There is still one crash that is occuring that I have to track down. For the moment, don't edit the bookmarks twice in the same session.
author masneyb
date Wed, 23 Jul 2003 02:39:24 +0000
parents a85a097bbb02
children 1638e32e6a35
line wrap: on
line diff
--- a/lib/gftp.h	Mon Jul 21 19:54:10 2003 +0000
+++ b/lib/gftp.h	Wed Jul 23 02:39:24 2003 +0000
@@ -299,7 +299,7 @@
   int (*write_function) (gftp_config_vars * cv, FILE * fd, int to_config_file);
   void (*copy_function) (gftp_config_vars * cv, gftp_config_vars * dest_cv);
   int (*compare_function) (gftp_config_vars * cv1, gftp_config_vars * cv2);
-  void * (*ui_print_function) (gftp_config_vars * cv, void *user_data);
+  void *(*ui_print_function) (gftp_config_vars * cv, void *user_data, void *value);
   void (*ui_save_function) (gftp_config_vars * cv, void *user_data);
   void (*ui_cancel_function) (gftp_config_vars * cv, void *user_data);
   void *user_data;
@@ -636,12 +636,20 @@
 					  char * key, 
 					  void *value );
 
+void gftp_lookup_bookmark_option 	( gftp_bookmarks_var * bm, 
+					  char * key, 
+					  void *value );
+
 void gftp_set_global_option 		( char * key, 
 					  const void *value );
 
 void gftp_set_request_option 		( gftp_request * request, 
 					  char * key, 
-					  void *value );
+					  const void *value );
+
+void gftp_set_bookmark_option 		( gftp_bookmarks_var * bm,
+					  char * key, 
+					  const void *value );
 
 void gftp_register_config_vars 		( gftp_config_vars *config_vars );