comparison lib/rfc959.c @ 201:0098dae654a5

2003-6-25 Brian Masney <masneyb@gftp.org> * configure.in - added mk to ALL_LINGUAS * lib/gftp.h - added several macros for dmalloc * lib/misc.c src/text/gftp-text.c src/gtk/gftp-gtk.c - added gftp_shutdown() to misc.c. This will write out the configuration file, clear the cache, and if dmalloc is enabled, free the memory that was allocated on startup * lib/config_file.c lib/gftp.h lib/misc.c lib/options.h - added gftp_configuration_changed parameter * lib/config_file.c lib/misc.c lib/protocols.c - added gftp_config_free_options() * lib/config_file.c src/gtk/bookmarks.c - added gftp_bookmarks() which is derived mostly from bm_close_dialog() * lib/rfc959.c - added rfc959_request_destroy(). Free the getline buffers in this function * src/gtk/misc-gtk.c (gftp_item_factory_translate) - remove double g_strdup() call * lib/config_file.c lib/gftp.h src/gtk/misc-gtk.c - moved get_xpm_path() to GTK+ port. No longer call it startup when reading the config file
author masneyb
date Thu, 26 Jun 2003 01:04:12 +0000
parents 3fa7b4f4ab78
children a85a097bbb02
comparison
equal deleted inserted replaced
200:27ae88b5a55e 201:0098dae654a5
1652 gftp_set_global_option ("email", tempstr); 1652 gftp_set_global_option ("email", tempstr);
1653 } 1653 }
1654 } 1654 }
1655 1655
1656 1656
1657 void
1658 rfc959_request_destroy (gftp_request * request)
1659 {
1660 rfc959_parms * parms;
1661
1662 parms = request->protocol_data;
1663
1664 if (parms->datafd_rbuf != NULL)
1665 gftp_free_getline_buffer (&parms->datafd_rbuf);
1666
1667 if (parms->dataconn_rbuf != NULL)
1668 gftp_free_getline_buffer (&parms->dataconn_rbuf);
1669 }
1670
1671
1657 int 1672 int
1658 rfc959_init (gftp_request * request) 1673 rfc959_init (gftp_request * request)
1659 { 1674 {
1660 rfc959_parms * parms; 1675 rfc959_parms * parms;
1661 1676
1662 g_return_val_if_fail (request != NULL, GFTP_EFATAL); 1677 g_return_val_if_fail (request != NULL, GFTP_EFATAL);
1663 1678
1664 request->protonum = GFTP_FTP_NUM; 1679 request->protonum = GFTP_FTP_NUM;
1665 request->init = rfc959_init; 1680 request->init = rfc959_init;
1666 request->destroy = NULL; 1681 request->destroy = rfc959_request_destroy;
1667 request->read_function = gftp_fd_read; 1682 request->read_function = gftp_fd_read;
1668 request->write_function = gftp_fd_write; 1683 request->write_function = gftp_fd_write;
1669 request->connect = rfc959_connect; 1684 request->connect = rfc959_connect;
1670 request->post_connect = NULL; 1685 request->post_connect = NULL;
1671 request->disconnect = rfc959_disconnect; 1686 request->disconnect = rfc959_disconnect;