aboutsummaryrefslogtreecommitdiffstats
path: root/proto.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-11 15:54:08 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-11 15:54:08 +0000
commit03fa645498d47b7dd07646e97f3c114c6d3b5883 (patch)
tree7b7fd98a637d6795ba838d8008f1a165daa04fec /proto.h
parentfix compiler warnings (diff)
downloadw3m-03fa645498d47b7dd07646e97f3c114c6d3b5883.tar.gz
w3m-03fa645498d47b7dd07646e97f3c114c6d3b5883.zip
[w3m-dev 03633] Re: cleanup (don't close connection of news server)
* file.c (FTPhalfclose): deleted (loadGeneralFile): closeFTP when doFileSave is done (_doFileCopy): return int (doFileMove): return int (doFileSave): return int * ftp.c: rewrite * main.c (w3m_exit): disconnectFTP * proto.h (_doFileCopy): return int (doFileMove): return int (doFileSave): return int (openFTP): deleted (openFTPStream): return InputStream (closeFTP): no arg (Ftpfclose): disconnectFTP * url.c (openFTPstream): deleted From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/proto.h b/proto.h
index cdbcbe0..a9d0dd3 100644
--- a/proto.h
+++ b/proto.h
@@ -1,4 +1,4 @@
-/* $Id: proto.h,v 1.76 2003/01/06 15:37:00 ukai Exp $ */
+/* $Id: proto.h,v 1.77 2003/01/11 15:54:09 ukai Exp $ */
/*
* This file was automatically generated by version 1.7 of cextract.
* Manual editing not recommended.
@@ -233,10 +233,10 @@ extern Line *getNextPage(Buffer *buf, int plen);
extern int save2tmp(URLFile uf, char *tmpf);
extern int doExternal(URLFile uf, char *path, char *type, Buffer **bufp,
Buffer *defaultbuf);
-extern void _doFileCopy(char *tmpf, char *defstr, int download);
+extern int _doFileCopy(char *tmpf, char *defstr, int download);
#define doFileCopy(tmpf, defstr) _doFileCopy(tmpf, defstr, FALSE);
-extern void doFileMove(char *tmpf, char *defstr);
-extern void doFileSave(URLFile uf, char *defstr);
+extern int doFileMove(char *tmpf, char *defstr);
+extern int doFileSave(URLFile uf, char *defstr);
extern int checkCopyFile(char *path1, char *path2);
extern int checkSaveFile(InputStream stream, char *path);
extern int checkOverWrite(char *path);
@@ -505,10 +505,10 @@ extern Str unquote_mailcap(char *qstr, char *type, char *name, char *attr,
extern char *guessContentType(char *filename);
extern TextList *make_domain_list(char *domain_list);
extern int check_no_proxy(char *domain);
-extern FILE *openFTP(ParsedURL *pu, URLFile *uf);
+extern InputStream openFTPStream(ParsedURL *pu, URLFile *uf);
extern Str readFTPDir(ParsedURL *pu);
-extern void closeFTP(FILE * f);
-extern int Ftpfclose(FILE * f);
+extern void closeFTP(void);
+extern void disconnectFTP(void);
#ifdef USE_NNTP
extern InputStream openNewsStream(ParsedURL *pu);
extern Str readNewsgroup(ParsedURL *pu);