annotate lib/options.h @ 168:c505d9ba9d53

2003-6-6 Brian Masney <masneyb@gftp.org> * lib/gftp.h - if USE_SSL is defined, include the OpenSSL headers. Added read_function, write_function and post_connect function pointers to gftp_request structure. Added SSL object to gftp_request structure if USE_SSL is defined. Added protocol number and init function declarations for the HTTPS protocol * lib/options.h - added HTTPS to the list of supported protocols * lib/protocols.c lib/cache.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c - renamed gftp_read(), gftp_write() and gftp_set_sockblocking() to gftp_fd_read(), gftp_fd_write() and gftp_fd_set_sockblocking() respectively * lib/bookmark.c lib/local.c * lib/misc.c lib/rfc2068.c - moved base64_encode() to misc.c * lib/protocols.c - improved parsing of URLs. Rather than calling gftp_read() or gftp_write() directly, call the read_function or write_function that is set in the request structure. Expanded tabs to spaces. Cleanup for parsing of timestamps. In gftp_connect_server(), if a post_connect function pointer is set, call it after we are connected to the server. Improvements to gftp_get_line (). * lib/httpcommon.h lib/rfc2068.c - moved rfc2068_params structure to httpcommon.h. Fix for chunked file transfers, they were not handled at all before. Made the I/O calls a little more generic so that we can read from either a socket or a SSL connection. * lib/sslcommon.c - added generic SSL layer * lib/https.c - added support for the HTTPS protocol. It piggy backs off of the existing HTTP support and uses the generic SSL layer * src/gtk/bookmarks.c src/gtk/chmod_dialog.c src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/options_dialog.c src/gtk/view_dialog.c - set the window icon name to the gFTP <version> * configure.in - added lib back to SUBDIRS (oops) * lib/Makefile.am - added https.c, sslcommon.c and httpcommon.h
author masneyb
date Sun, 08 Jun 2003 15:04:40 +0000
parents 12a043d992a1
children d40f9db52cdf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 /*****************************************************************************/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2 /* options.h - the global variables for the program */
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5 /* This program is free software; you can redistribute it and/or modify */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 /* it under the terms of the GNU General Public License as published by */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7 /* the Free Software Foundation; either version 2 of the License, or */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
8 /* (at your option) any later version. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
9 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
10 /* This program is distributed in the hope that it will be useful, */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13 /* GNU General Public License for more details. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
14 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
15 /* You should have received a copy of the GNU General Public License */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 /* along with this program; if not, write to the Free Software */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
17 /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
18 /*****************************************************************************/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
19
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 1
diff changeset
20 /* $Id$ */
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 1
diff changeset
21
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 #include "gftp.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
24 static char *gftp_sort_columns[] = { N_("none"), N_("file"), N_("size"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
25 N_("user"), N_("group"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
26 N_("datetime"), N_("attribs"), NULL };
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
27
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
28 static char *gftp_sort_direction[] = { N_("descending"), N_("ascending"), NULL };
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
29
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
30 static float gftp_maxkbs = 0.0;
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
31
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
32 gftp_config_vars gftp_global_config_vars[] =
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
33 {
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 126
diff changeset
34 {"", N_("General"), gftp_option_type_notebook, NULL, NULL, 0, NULL, GFTP_PORT_GTK, NULL},
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
35
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
36 {"view_program", N_("View program:"), gftp_option_type_text, "", NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
37 N_("The default program used to view files. If this is blank, the internal file viewer will be used"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
38 GFTP_PORT_GTK, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
39 {"edit_program", N_("Edit program:"), gftp_option_type_text, "", NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
40 N_("The default program used to edit files."), GFTP_PORT_GTK, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
41 {"startup_directory", N_("Startup Directory:"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
42 gftp_option_type_text, "", NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
43 N_("The default directory gFTP will go to on startup"), GFTP_PORT_ALL, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
44 {"max_log_window_size", N_("Max Log Window Size:"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
45 gftp_option_type_int, 0, NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
46 N_("The maximum size of the log window in bytes for the GTK+ port"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
47 GFTP_PORT_GTK, NULL},
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
48
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
49 {"append_transfers", N_("Append file transfers"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
50 gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
51 N_("Append new file transfers onto existing ones"), GFTP_PORT_GTK, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
52 {"one_transfer", N_("Do one transfer at a time"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
53 gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
54 N_("Do only one transfer at a time?"), GFTP_PORT_GTK, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
55 {"overwrite_default", N_("Overwrite by Default"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
56 gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
57 N_("Overwrite files by default or set to resume file transfers"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
58 GFTP_PORT_GTK, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
59 {"refresh_files", N_("Refresh after each file transfer"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
60 gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
61 N_("Refresh the listbox after each file is transfered"), GFTP_PORT_GTK,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
62 NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
63 {"sort_dirs_first", N_("Sort directories first"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
64 gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
65 N_("Put the directories first then the files"), GFTP_PORT_ALL, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
66 {"show_hidden_files", N_("Show hidden files"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
67 gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
68 N_("Show hidden files in the listboxes"), GFTP_PORT_ALL, NULL},
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
69
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
70 {"", N_("Network"), gftp_option_type_notebook, NULL, NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
71 NULL, GFTP_PORT_GTK, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
72 {"network_timeout", N_("Network timeout:"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
73 gftp_option_type_int, GINT_TO_POINTER(60), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
74 N_("The timeout waiting for network input/output. This is NOT an idle timeout."),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
75 GFTP_PORT_ALL, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
76 {"retries", N_("Connect retries:"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
77 gftp_option_type_int, GINT_TO_POINTER(3), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
78 N_("The number of auto-retries to do. Set this to 0 to retry indefinately"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
79 GFTP_PORT_ALL, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
80 {"sleep_time", N_("Retry sleep time:"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
81 gftp_option_type_int, GINT_TO_POINTER(30), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
82 N_("The number of seconds to wait between retries"), GFTP_PORT_ALL, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
83 {"maxkbs", N_("Max KB/S:"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
84 gftp_option_type_float, &gftp_maxkbs, NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
85 N_("The maximum KB/s a file transfer can get. (Set to 0 to disable)"),
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
86 GFTP_PORT_ALL, NULL},
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 126
diff changeset
88 {"default_protocol", N_("Default Protocol:"),
125
b875de05c22d 2003-4-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 122
diff changeset
89 gftp_option_type_textcombo, "FTP", NULL, 0,
b875de05c22d 2003-4-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 122
diff changeset
90 N_("This specifies the default protocol to use"), GFTP_PORT_ALL, NULL},
b875de05c22d 2003-4-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 122
diff changeset
91
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
92 {"list_dblclk_action", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
93 gftp_option_type_int, GINT_TO_POINTER(0), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
94 N_("This defines what will happen when you double click a file in the file listboxes. 0=View file 1=Edit file 2=Transfer file"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
95 {"listbox_local_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
96 gftp_option_type_int, GINT_TO_POINTER(302), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
97 N_("The default width of the local files listbox"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
98 {"listbox_remote_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
99 gftp_option_type_int, GINT_TO_POINTER(302), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
100 N_("The default width of the remote files listbox"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
101 {"listbox_file_height", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
102 gftp_option_type_int, GINT_TO_POINTER(265), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
103 N_("The default height of the local/remote files listboxes"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
104 {"transfer_height", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
105 gftp_option_type_int, GINT_TO_POINTER(80), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
106 N_("The default height of the transfer listbox"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
107 {"log_height", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
108 gftp_option_type_int, GINT_TO_POINTER(105), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
109 N_("The default height of the logging window"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
110 {"file_trans_column", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
111 gftp_option_type_int, GINT_TO_POINTER(100), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
112 N_("The width of the filename column in the transfer window. Set this to 0 to have this column automagically resize."), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
113
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
114 {"local_sortcol", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
115 gftp_option_type_intcombo, GINT_TO_POINTER(1), gftp_sort_columns, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
116 N_("The default column to sort by"), GFTP_PORT_TEXT, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
117 {"local_sortasds", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
118 gftp_option_type_intcombo, GINT_TO_POINTER(1), gftp_sort_direction, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
119 N_("Sort ascending or descending"), GFTP_PORT_TEXT, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
120 {"remote_sortcol", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
121 gftp_option_type_intcombo, GINT_TO_POINTER(1), gftp_sort_columns, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
122 N_("The default column to sort by"), GFTP_PORT_TEXT, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
123 {"remote_sortasds", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
124 gftp_option_type_intcombo, GINT_TO_POINTER(1), gftp_sort_direction, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
125 N_("Sort ascending or descending"), GFTP_PORT_TEXT, NULL},
37
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
126
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
127 {"local_file_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
128 gftp_option_type_int, GINT_TO_POINTER(0), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
129 N_("The width of the filename column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
130 {"local_size_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
131 gftp_option_type_int, GINT_TO_POINTER(85), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
132 N_("The width of the size column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
133 {"local_user_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
134 gftp_option_type_int, GINT_TO_POINTER(75), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
135 N_("The width of the user column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
136 {"local_group_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
137 gftp_option_type_int, GINT_TO_POINTER(76), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
138 N_("The width of the group column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
139 {"local_date_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
140 gftp_option_type_int, GINT_TO_POINTER(120), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
141 N_("The width of the date column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
142 {"local_attribs_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
143 gftp_option_type_int, GINT_TO_POINTER(75), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
144 N_("The width of the attribs column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
145 {"remote_file_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
146 gftp_option_type_int, GINT_TO_POINTER(0), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
147 N_("The width of the filename column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
148 {"remote_size_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
149 gftp_option_type_int, GINT_TO_POINTER(85), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
150 N_("The width of the size column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
151 {"remote_user_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
152 gftp_option_type_int, GINT_TO_POINTER(75), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
153 N_("The width of the user column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
154 {"remote_group_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
155 gftp_option_type_int, GINT_TO_POINTER(76), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
156 N_("The width of the group column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
157 {"remote_date_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
158 gftp_option_type_int, GINT_TO_POINTER(120), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
159 N_("The width of the date column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
160 {"remote_attribs_width", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
161 gftp_option_type_int, GINT_TO_POINTER(75), NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
162 N_("The width of the attribs column in the file listboxes. Set this to 0 to have this column automagically resize. Set this to -1 to disable this column"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
163 {"send_color", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
164 gftp_option_type_color, "0:8600:0", NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
165 N_("The color of the commands that are sent to the server"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
166 {"recv_color", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
167 gftp_option_type_color, "0:0:ffff", NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
168 N_("The color of the commands that are received from the server"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
169 {"error_color", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
170 gftp_option_type_color, "ffff:0:0", NULL, 0,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
171 N_("The color of the error messages"), 0, NULL},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
172 {"misc_color", "",
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
173 gftp_option_type_color, "a000:8d00:4600", NULL, 0,
162
12a043d992a1 2003-5-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 136
diff changeset
174 N_("The color of the rest of the log messages"), 0, NULL},
12a043d992a1 2003-5-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 136
diff changeset
175 {NULL, NULL, 0, NULL, NULL, 0, NULL, 0, NULL}
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
176 };
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
178 supported_gftp_protocols gftp_protocols[] =
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
179 {
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
180 {N_("FTP"), rfc959_init, rfc959_register_module, "ftp", 1},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
181 {N_("HTTP"), rfc2068_init, rfc2068_register_module, "http", 1},
168
c505d9ba9d53 2003-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 162
diff changeset
182 {N_("HTTPS"), https_init, https_register_module, "https", 1},
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
183 {N_("Local"), local_init, local_register_module, "file", 1},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
184 {N_("SSH2"), sshv2_init, sshv2_register_module, "ssh2", 1},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
185 {N_("Bookmark"), bookmark_init, bookmark_register_module, "bookmark", 0},
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
186 {NULL, NULL, NULL, NULL, 0}
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
187 };
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
188
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
189 GHashTable * gftp_global_options_htable = NULL,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
190 * gftp_config_list_htable = NULL,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
191 * gftp_bookmarks_htable = NULL;
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
192
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
193 char gftp_version[] = "gFTP " VERSION;
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
194
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
195 GList * gftp_file_transfers = NULL,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
196 * gftp_file_transfer_logs = NULL,
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
197 * gftp_options_list = NULL;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
199 gftp_bookmarks_var * gftp_bookmarks = NULL;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200
122
76e2b58a9440 2003-4-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 101
diff changeset
201 FILE * gftp_logfd = NULL;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202