diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:36:11 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:36:11 +0000 |
commit | ad5b7acc19290ff91e0f42a0de448a26760fcf99 (patch) | |
tree | 2d1867758835fd0c4e443ff3cc7e5c774af85874 /src/httrack.h |
Imported httrack 3.20.2
Diffstat (limited to 'src/httrack.h')
-rw-r--r-- | src/httrack.h | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/src/httrack.h b/src/httrack.h new file mode 100644 index 0000000..a8633de --- /dev/null +++ b/src/httrack.h @@ -0,0 +1,107 @@ +/* ------------------------------------------------------------ */ +/* +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: htsshow.c console progress info */ +/* Author: Xavier Roche */ +/* ------------------------------------------------------------ */ + +#ifndef HTSTOOLS_DEFH +#define HTSTOOLS_DEFH + +#if HTS_ANALYSTE_CONSOLE + +#include "htsglobal.h" +#include "htscore.h" + +typedef struct { + char name[1000]; + char file[256]; + char state[20]; + char url_sav[HTS_URLMAXSIZE*2]; // pour cancel + char url_adr[HTS_URLMAXSIZE*2]; + char url_fil[HTS_URLMAXSIZE*2]; + LLint size; + LLint sizetot; + int offset; + // + int back; + // + int actived; // pour disabled +} t_StatsBuffer; + +typedef struct { + int ask_refresh; + int refresh; + LLint stat_bytes; + int stat_time; + int lien_n; + int lien_tot; + int stat_nsocket; + int rate; + int irate; + int ft; + LLint stat_written; + int stat_updated; + int stat_errors; + int stat_warnings; + int stat_infos; + TStamp stat_timestart; + int stat_back; +} t_InpInfo; + +// wrappers +void __cdecl htsshow_init(void); +void __cdecl htsshow_uninit(void); +int __cdecl htsshow_start(httrackp* opt); +int __cdecl htsshow_chopt(httrackp* opt); +int __cdecl htsshow_end(void); +int __cdecl htsshow_checkhtml(char* html,int len,char* url_adresse,char* url_fichier); +int __cdecl htsshow_loop(lien_back* back,int back_max,int back_index,int lien_n,int lien_tot,int stat_time,hts_stat_struct* stats); +char* __cdecl htsshow_query(char* question); +char* __cdecl htsshow_query2(char* question); +char* __cdecl htsshow_query3(char* question); +int __cdecl htsshow_check(char* adr,char* fil,int status); +void __cdecl htsshow_pause(char* lockfile); +void __cdecl htsshow_filesave(char* file); +int __cdecl htsshow_linkdetected(char* link); +int __cdecl htsshow_xfrstatus(lien_back* back); +int __cdecl htsshow_savename(char* adr_complete,char* fil_complete,char* referer_adr,char* referer_fil,char* save); + +int main(int argc, char **argv); +void vt_color(int text,int back); +void vt_clear(void); +void vt_home(void); + +#endif + +#endif + |