annotate src/gtk/gftp-gtk.h @ 499:39e9945288ea

2004-7-13 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/local.c lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c src/gtk/chmod_dialog.c src/gtk/delete_dialog.c src/gtk/dnd.c src/gtk/gftp-gtk.c src/gtk/gtkui_transfer.c src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/view_dialog.c src/text/textui.c src/uicommon/gftpui.c src/uicommon/gftpuicallbacks.c - represent the file attributes as a mode_t variable instead of a character string
author masneyb
date Tue, 13 Jul 2004 20:17:42 +0000
parents 937f2b75bbee
children c89019945241
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 /* gftp-gtk.h - include file for the gftp gtk+ 1.2 port */
255
2ad324cf4930 2003-8-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 233
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., 675 Mass Ave, Cambridge, MA 02139, 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: 19
diff changeset
20 /* $Id$ */
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 19
diff changeset
21
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 #ifndef __GFTP_GTK_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23 #define __GFTP_GTK_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
24
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 #include "../../lib/gftp.h"
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
26 #include "../uicommon/gftpui.h"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 #include <gdk/gdkkeysyms.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 #include <pthread.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
31 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
33
297
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
34 #define GFTP_IS_SAME_HOST_START_TRANS(wdata,trequest) \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
35 ((wdata) != NULL && (wdata)->request != NULL && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
36 (wdata)->request->datafd > 0 && !(wdata)->request->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
37 !(wdata)->request->stopable && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
38 compare_request (trequest, (wdata)->request, 0))
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
39
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
40 #define GFTP_IS_SAME_HOST_STOP_TRANS(wdata,trequest) \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
41 ((wdata) != NULL && (wdata)->request != NULL && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
42 (wdata)->request->datafd < 0 && !(wdata)->request->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
43 (wdata)->request->cached && !(wdata)->request->stopable && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
44 trequest->datafd > 0 && !trequest->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
45 compare_request (trequest, (wdata)->request, 0))
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
46
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
47 #if GTK_MAJOR_VERSION == 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
48 #define gtk_widget_set_size_request(widget, width, height) \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
49 gtk_widget_set_usize (widget, width, height)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
50 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
51
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
52 /* These 2 defines are for creating menu items with stock icons in GTK+ 2.0.
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
53 If we are using version 1.2, it will disable the stock items since it's not
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
54 supported */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
55
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
56 #if GTK_MAJOR_VERSION < 2
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
57 #define MS_(a) NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
58 #define MN_(a) a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
59 #else
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
60 #define MS_(a) "<StockItem>",a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
61 #define MN_(a) a,NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
62 #endif
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
63
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
64 /* These are used for the MakeEditDialog function. I have these types to make
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
65 it easier for creating dialogs with GTK+ 1.2 and GTK+ 2.0 */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
66
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
67 typedef enum gftp_dialog_button_tag
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
68 {
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
69 gftp_dialog_button_create,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
70 gftp_dialog_button_change,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
71 gftp_dialog_button_connect,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
72 gftp_dialog_button_rename,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
73 gftp_dialog_button_ok
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
74 } gftp_dialog_button;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
75
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
76 typedef struct gftp_window_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
77 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
78 GtkWidget *combo, /* Entry widget/history for the user to enter
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
79 a directory */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
80 *hoststxt, /* Show which directory we're in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 *listbox; /* Our listbox showing the files */
37
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
82 unsigned int sorted : 1, /* Is the output sorted? */
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83 show_selected : 1, /* Show only selected files */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84 *histlen; /* Pointer to length of history */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 char *filespec; /* Filespec for the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 gftp_request * request; /* The host that we are connected to */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87 GList * files, /* Files in the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 ** history; /* History of the directories */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 GtkItemFactory *ifactory; /* This is for the menus that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 come up when you right click */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91 pthread_t tid; /* Thread for the stop button */
129
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
92 char *prefix_col_str;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93 } gftp_window_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95
355
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
96 typedef struct _gftpui_gtk_thread_data
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
97 {
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
98 void * (*func) (void *);
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
99 gftpui_callback_data * cdata;
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
100 } gftpui_gtk_thread_data;
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
101
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
102
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103 typedef struct gftp_graphic_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
105 char * filename;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
106 GdkPixmap * pixmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
107 GdkBitmap * bitmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 } gftp_graphic;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 typedef struct gftp_dialog_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 {
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
113 GtkWidget * dialog,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
114 * checkbox,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
115 * edit;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
116
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
117 void (*yesfunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
118 gpointer yespointer;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
119
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
120 void (*nofunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
121 gpointer nopointer;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122 } gftp_dialog_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 typedef struct gftp_viewedit_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 char *filename, /* File we are viewing/editing currently */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 *remote_filename; /* The filename on the remote computer */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 struct stat st; /* Vital file statistics */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130 pid_t pid; /* Our process id */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 char **argv; /* Our arguments we passed to execvp. We will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 free it when the process terminates. This
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 is the safest place to free this */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 unsigned int view : 1, /* View or edit this file */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 rm : 1, /* Delete this file after we're done with it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 dontupload : 1; /* Don't upload this file after we're done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 editing it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 gftp_window_data * fromwdata, /* The window we are viewing this file in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 * towdata;
294
4747f621b79b 2003-10-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 255
diff changeset
140 gftp_request * torequest;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 } gftp_viewedit_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
144 typedef struct gftp_save_dir_struct_tag
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
145 {
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
146 GtkWidget * filew;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
147 gftp_window_data * wdata;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
148 } gftp_save_dir_struct;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
149
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
150
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
151 typedef struct gftp_textcomboedt_widget_data_tag
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
152 {
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
153 GtkWidget * combo,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
154 * text;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
155 gftp_config_vars * cv;
139
c363b08e0118 2003-4-21 Brian Masney <masneyb@gftp.org>
masneyb
parents: 136
diff changeset
156 char * custom_edit_value;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
157 } gftp_textcomboedt_widget_data;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
158
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
159
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
160 typedef struct gftp_options_dialog_data_tag
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
161 {
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
162 GtkWidget * dialog,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
163 * notebook,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
164 * box,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
165 * table;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
166 int tbl_col_num,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
167 tbl_row_num;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
168 gftp_option_type_enum last_option;
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
169 gftp_bookmarks_var * bm;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
170 } gftp_options_dialog_data;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
171
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
172
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 extern gftp_window_data window1, window2, * other_wdata, * current_wdata;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174 extern GtkWidget * stop_btn, * hostedit, * useredit, * passedit,
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
175 * portedit, * logwdw, * dlwdw, * protocol_menu, * optionmenu,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
176 * gftpui_command_widget;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 extern GtkAdjustment * logwdw_vadj;
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
178 #if GTK_MAJOR_VERSION > 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 extern GtkTextMark * logwdw_textmark;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181 extern int local_start, remote_start, trans_start, log_start, tools_start;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 extern GHashTable * graphic_hash_table;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 extern GtkItemFactoryEntry * menus;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184 extern GtkItemFactory * factory;
367
d5409bf03ff1 2003-1-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 355
diff changeset
185 extern pthread_mutex_t log_mutex;
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
186 extern gftp_graphic * gftp_icon;
56
a12bcbc2fce4 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 45
diff changeset
187 extern pthread_t main_thread_id;
129
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
188 extern GList * viewedit_processes;
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
189
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 /* bookmarks.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 void run_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
194 void add_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 void edit_bookmarks ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198 void build_bookmarks_menu ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 /* chmod_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 void chmod_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203 /* delete_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 void delete_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 /* dnd.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207 void openurl_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 void listbox_drag ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223 void listbox_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 /* gftp-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 void toolbar_hostedit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236 void sortrows ( GtkCList * clist,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 gint column,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 void stop_button ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
243 void gftpui_show_or_hide_command ( void );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
244
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
245 /* gtkui.c */
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
246 void gftpui_run_command ( GtkWidget * widget,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
247 gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
248
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
249 void gftpui_run_function_callback ( gftp_window_data * wdata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
250 gftp_dialog_data * ddata );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
251
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
252 void gftpui_run_function_cancel_callback ( gftp_window_data * wdata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
253 gftp_dialog_data * ddata );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
254
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
255 void gftpui_mkdir_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
256
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
257 void gftpui_rename_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
258
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
259 void gftpui_site_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
260
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
261 int gftpui_run_chdir ( gpointer uidata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
262 char *directory );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
263
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
264 void gftpui_chdir_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
265
397
14ef37b62c20 2004-2-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 380
diff changeset
266 char * gftpui_gtk_get_utf8_file_pos ( gftp_file * fle );
14ef37b62c20 2004-2-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 380
diff changeset
267
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 /* menu_items.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269 void change_filespec ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
271 void save_directory_listing ( gpointer data );
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
272
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 void show_selected ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275 void selectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277 void selectallfiles ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279 void deselectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281 int chdir_edit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284 void clearlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286 void viewlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288 void savelog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290 void clear_cache ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
292 void compare_windows ( gpointer data );
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
293
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
294 void about_dialog ( gpointer data );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296 /* misc-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
297 void fix_display ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
299 void remove_files_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301 void ftp_log ( gftp_logging_level level,
186
13ca1defdc75 2003-6-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 139
diff changeset
302 gftp_request * request,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
303 const char *string,
338
0f34108f27b7 2003-12-10 Brian Masney <masneyb@gftp.org>
masneyb
parents: 303
diff changeset
304 ... ) GFTP_LOG_FUNCTION_ATTRIBUTES;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 void update_window_info ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
307
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308 void update_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
309
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310 GtkWidget * toolbar_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
312
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
313 gftp_graphic * open_xpm ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
314 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316 void gftp_free_pixmap ( char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 void gftp_get_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319 char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320 GdkPixmap ** pix,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 GdkBitmap ** bitmap );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
322
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
323 int check_status ( char *name,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
324 gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
325 int check_other_stop,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326 int only_one,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327 int at_least_one,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328 int func );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
330 GtkItemFactory *item_factory_new ( GtkType container_type,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
331 const char *path,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
332 GtkAccelGroup *accel_group,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
333 const char *strip_prefix );
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
334
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
335 void create_item_factory ( GtkItemFactory * ifactory,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
336 guint n_entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
337 GtkItemFactoryEntry * entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
338 gpointer callback_data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
339
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
340 void add_history ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
341 GList ** history,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
342 unsigned int *histlen,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
343 const char *str );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
344
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345 int check_reconnect ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
346
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347 void add_file_listbox ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348 gftp_file * fle );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349
425
8fc4efa3f72d 2004-3-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 397
diff changeset
350 void destroy_dialog ( gftp_dialog_data * ddata );
8fc4efa3f72d 2004-3-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 397
diff changeset
351
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352 void MakeEditDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 char *infotxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354 char *deftext,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
355 int passwd_item,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
356 char *checktext,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
357 gftp_dialog_button okbutton,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358 void (*okfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359 void *okptr,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
360 void (*cancelfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
361 void *cancelptr );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
362
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363 void MakeYesNoDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364 char *infotxt,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
365 void (*yesfunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
366 gpointer yespointer,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
367 void (*nofunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
368 gpointer nopointer );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
370 void update_directory_download_progress ( gftp_transfer * transfer );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
371
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
372 int progress_timeout ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
373
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374 void display_cached_logs ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
375
201
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
376 char * get_xpm_path ( char *filename,
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
377 int quit_on_err );
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
378
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
379 /* options_dialog.c */
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
380 void options_dialog ( gpointer data );
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
381
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
382 void gftp_gtk_setup_bookmark_options ( GtkWidget * notebook,
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
383 gftp_bookmarks_var * bm );
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
384
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
385 void gftp_gtk_save_bookmark_options ( gftp_bookmarks_var * bm );
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
386
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
387 /* transfer.c */
496
937f2b75bbee 2004-7-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 470
diff changeset
388 int ftp_list_files ( gftp_window_data * wdata );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
389
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
390 int ftp_connect ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
391 gftp_request * request,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
392 int getdir );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
393
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
394 gint update_downloads ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
395
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
396 void get_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
398 void put_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400 void transfer_window_files ( gftp_window_data * fromwdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
401 gftp_window_data * towdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
403 void *do_getdir_thread ( void * data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
404
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
405 void start_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
406
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
407 void stop_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
408
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
409 void skip_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
410
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
411 void remove_file_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
412
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
413 void move_transfer_up ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
414
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
415 void move_transfer_down ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
416
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
417 /* view_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
418 void edit_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
419
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
420 void view_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
421
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
422 void view_file ( char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
423 int fd,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
424 int viewedit,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
425 int del_file,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
426 int start_pos,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
427 int dontupload,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
428 char *remote_filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
429 gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
430
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
431 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
432