summaryrefslogtreecommitdiff
path: root/src/htscache.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-03-19 12:36:11 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-03-19 12:36:11 +0000
commitad5b7acc19290ff91e0f42a0de448a26760fcf99 (patch)
tree2d1867758835fd0c4e443ff3cc7e5c774af85874 /src/htscache.h
Imported httrack 3.20.2
Diffstat (limited to 'src/htscache.h')
-rw-r--r--src/htscache.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/htscache.h b/src/htscache.h
new file mode 100644
index 0000000..08069d1
--- /dev/null
+++ b/src/htscache.h
@@ -0,0 +1,64 @@
+/* ------------------------------------------------------------ */
+/*
+HTTrack Website Copier, Offline Browser for Windows and Unix
+Copyright (C) Xavier Roche and other contributors
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+Important notes:
+
+- We hereby ask people using this source NOT to use it in purpose of grabbing
+emails addresses, or collecting any other private information on persons.
+This would disgrace our work, and spoil the many hours we spent on it.
+
+
+Please visit our Website: http://www.httrack.com
+*/
+
+
+/* ------------------------------------------------------------ */
+/* File: httrack.c subroutines: */
+/* cache system (index and stores files in cache) */
+/* Author: Xavier Roche */
+/* ------------------------------------------------------------ */
+
+
+
+#ifndef HTSCACHE_DEFH
+#define HTSCACHE_DEFH
+
+#include "htscore.h"
+
+// cache
+void cache_mayadd(httrackp* opt,cache_back* cache,htsblk* r,char* url_adr,char* url_fil,char* url_save);
+void cache_add(htsblk r,char* url_adr,char* url_fil,char* url_save,FILE* cache_ndx,FILE* cache_dat,int all_in_cache);
+htsblk cache_read(httrackp* opt,cache_back* cache,char* adr,char* fil,char* save);
+htsblk* cache_header(httrackp* opt,cache_back* cache,char* adr,char* fil);
+void cache_init(cache_back* cache,httrackp* opt);
+
+int cache_writedata(FILE* cache_ndx,FILE* cache_dat,char* str1,char* str2,char* outbuff,int len);
+int cache_readdata(cache_back* cache,char* str1,char* str2,char** inbuff,int* len);
+
+int cache_wstr(FILE* fp,char* s);
+void cache_rstr(FILE* fp,char* s);
+int cache_brstr(char* adr,char* s);
+int cache_quickbrstr(char* adr,char* s);
+int cache_brint(char* adr,int* i);
+void cache_rint(FILE* fp,int* i);
+int cache_wint(FILE* fp,int i);
+void cache_rLLint(FILE* fp,LLint* i);
+int cache_wLLint(FILE* fp,LLint i);
+#endif