Mercurial > gftp.yaz
comparison lib/gftp.h @ 126:1e65871fdfa1
2003-4-9 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/config_file.c - reordered config option types. Added
gftp_option_type_textcomboedt type
* lib/options.h lib/rfc959.c - moved gftp_proxy_type to rfc959.c
* lib/rfc959.c - added proxy_type that is
gftp_option_type_textcomboedt. Consolidated help text into comment.
In parse_ftp_proxy_string(), improve parsing of proxy config
author | masneyb |
---|---|
date | Thu, 10 Apr 2003 02:29:44 +0000 |
parents | b875de05c22d |
children | fe0b21c006f6 |
comparison
equal
deleted
inserted
replaced
125:b875de05c22d | 126:1e65871fdfa1 |
---|---|
424 /* Note, these numbers must match up to the index number in config_file.c | 424 /* Note, these numbers must match up to the index number in config_file.c |
425 in the declaration of gftp_option_types */ | 425 in the declaration of gftp_option_types */ |
426 typedef enum | 426 typedef enum |
427 { | 427 { |
428 gftp_option_type_text = 0, | 428 gftp_option_type_text = 0, |
429 gftp_option_type_int = 1, | 429 gftp_option_type_textcombo = 1, |
430 gftp_option_type_float = 2, | 430 gftp_option_type_textcomboedt = 2, |
431 gftp_option_type_checkbox = 3, | 431 gftp_option_type_hidetext = 3, |
432 gftp_option_type_color = 4, | 432 gftp_option_type_int = 4, |
433 gftp_option_type_notebook = 5, | 433 gftp_option_type_checkbox = 5, |
434 gftp_option_type_newtable = 6, | 434 gftp_option_type_intcombo = 6, |
435 gftp_option_type_hidetext = 7, | 435 gftp_option_type_float = 7, |
436 gftp_option_type_label = 8, | 436 gftp_option_type_color = 8, |
437 gftp_option_type_textbox = 9, | 437 gftp_option_type_notebook = 9, |
438 gftp_option_type_subtree = 10, | 438 gftp_option_type_newtable = 10, |
439 gftp_option_type_intcombo = 11, | 439 gftp_option_type_label = 11, |
440 gftp_option_type_textcombo = 12, | 440 gftp_option_type_subtree = 12, |
441 gftp_option_type_table = 13 | 441 gftp_option_type_table = 13 |
442 } gftp_option_type_enum; | 442 } gftp_option_type_enum; |
443 | 443 |
444 | 444 |
445 #define GFTP_PORT_GTK (1 << 1) | 445 #define GFTP_PORT_GTK (1 << 1) |
485 int (*ui_print_function) (char *label, void *ptr, void *user_data); | 485 int (*ui_print_function) (char *label, void *ptr, void *user_data); |
486 void *user_data; | 486 void *user_data; |
487 } gftp_option_type_var; | 487 } gftp_option_type_var; |
488 | 488 |
489 | 489 |
490 typedef struct gftp_proxy_type_var_tag | 490 typedef struct gftp_textcomboedt_data_tag |
491 { | 491 { |
492 char *key, | 492 char *key, |
493 *description; | 493 *description; |
494 } gftp_proxy_type_var; | 494 } gftp_textcomboedt_data; |
495 | 495 |
496 #define GFTP_CUSTOM_PROXY_NUM 8 | |
497 | 496 |
498 typedef struct gftp_getline_buffer_tag | 497 typedef struct gftp_getline_buffer_tag |
499 { | 498 { |
500 char *buffer, | 499 char *buffer, |
501 *curpos; | 500 *curpos; |
502 size_t max_bufsize, | 501 size_t max_bufsize, |
503 cur_bufsize; | 502 cur_bufsize; |
504 } gftp_getline_buffer; | 503 } gftp_getline_buffer; |
504 | |
505 | 505 |
506 /* Global config options. These are defined in options.h */ | 506 /* Global config options. These are defined in options.h */ |
507 extern GList * gftp_file_transfers, * gftp_file_transfer_logs, | 507 extern GList * gftp_file_transfers, * gftp_file_transfer_logs, |
508 * gftp_options_list; | 508 * gftp_options_list; |
509 extern GHashTable * gftp_global_options_htable, * gftp_bookmarks_htable, | 509 extern GHashTable * gftp_global_options_htable, * gftp_bookmarks_htable, |
510 * gftp_config_list_htable; | 510 * gftp_config_list_htable; |
511 extern gftp_config_vars gftp_global_config_vars[]; | 511 extern gftp_config_vars gftp_global_config_vars[]; |
512 extern supported_gftp_protocols gftp_protocols[]; | 512 extern supported_gftp_protocols gftp_protocols[]; |
513 extern gftp_proxy_type_var gftp_proxy_type[]; | |
514 extern gftp_bookmarks_var * gftp_bookmarks; | 513 extern gftp_bookmarks_var * gftp_bookmarks; |
515 extern char gftp_version[]; | 514 extern char gftp_version[]; |
516 extern FILE * gftp_logfd; | 515 extern FILE * gftp_logfd; |
517 | 516 |
518 /* This is defined in config_file.c */ | 517 /* This is defined in config_file.c */ |