diff lib/gftp.h @ 374:d207b8241e96

2003-1-21 Brian Masney <masneyb@gftp.org> * lib/config_file.c lib/gftp.h - set the character string arguments to const for the following functions: gftp_lookup_global_option(), gftp_lookup_request_option(), gftp_lookup_bookmark_option(), gftp_set_global_option(), gftp_set_request_option(), gftp_set_bookmark_option() * lib/misc.c lib/gftp.h - set the character string arguments to const for the function gftp_match_filespec() * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/uicommon/gftpui.c - moved more UI independant parts to the uicommon directory. Moved some GUI specific functionality into gftp-gtk.c * src/text/gftp-text.c src/gtk/gftp-gtk.c src/uicommon/gftpui.c - pass the local/remote uidata/request structures to process_command(). Removed old function gftpui_common_init(). Added new gftpui_common_init() that sets up common functionality for a port. * src/gtk/gtkui.c src/gtk/gtkui_transfer.c - moved gftpui_add_file_to_transfer() to gtkui_transfer.c * src/gtk/gtkui_transfer.c - cleaned up these functions some and made them more modular * src/uicommon/gftpui.c src/uicommon/gftpui.h - for all of the command line functions, make the command argument a constant
author masneyb
date Wed, 21 Jan 2004 23:35:40 +0000
parents af541d789f4c
children 14da115b149b
line wrap: on
line diff
--- a/lib/gftp.h	Wed Jan 21 16:46:01 2004 +0000
+++ b/lib/gftp.h	Wed Jan 21 23:35:40 2004 +0000
@@ -629,26 +629,26 @@
 
 void print_bookmarks 			( gftp_bookmarks_var * bookmarks );
 
-void gftp_lookup_global_option 		( char * key, 
+void gftp_lookup_global_option 		( const char * key, 
 					  void *value );
 
 void gftp_lookup_request_option 	( gftp_request * request, 
-					  char * key, 
+					  const char * key, 
 					  void *value );
 
 void gftp_lookup_bookmark_option 	( gftp_bookmarks_var * bm, 
-					  char * key, 
+					  const char * key, 
 					  void *value );
 
-void gftp_set_global_option 		( char * key, 
+void gftp_set_global_option 		( const char * key, 
 					  const void *value );
 
 void gftp_set_request_option 		( gftp_request * request, 
-					  char * key, 
+					  const char * key, 
 					  const void *value );
 
 void gftp_set_bookmark_option 		( gftp_bookmarks_var * bm,
-					  char * key, 
+					  const char * key, 
 					  const void *value );
 
 void gftp_register_config_vars 		( gftp_config_vars *config_vars );
@@ -679,8 +679,8 @@
 
 void make_nonnull 			( char **str );
 
-int gftp_match_filespec 		( char *filename, 
-					  char *filespec );
+int gftp_match_filespec 		( const char *filename, 
+					  const char *filespec );
 
 int gftp_parse_command_line 		( int *argc,
 					  char ***argv );