summaryrefslogtreecommitdiff
path: root/src/htsopt.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-14 20:30:28 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-14 20:30:28 +0000
commit07f4b003675260004c49755dde413944a16ca2d3 (patch)
tree11050b4c7fbe1d7c63a38f5f9a6b5ba6d8260ae1 /src/htsopt.h
parentb09def438c5e47305e4a5ab18d8a646a3b004fdc (diff)
Indenting cleanup for all *.[ch] files, except htsparse.c (too ugly to be automatically indented for now) and /minizip/, /mmsrip/ (external files)
setup: indent -l80 -lc80 -nhnl -nut -bad -bap -bbo -br -brf -bli2 -brs -bls -br -ss -sai -pmt -nsaw -nsaf -nprs -i2 -ce -npsl -npcs -cs -sob -cdw -nbc -lp logs: indent: ./src/htsback.c:157: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:1417: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:1826: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:1833: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:1981: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:2685: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:2747: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:2861: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:3128: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsback.c:3512: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htswizard.c:140: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htswizard.c:597: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htswizard.c:598: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htswizard.c:611: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscoremain.c:97: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscoremain.c:106: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscoremain.c:106: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscoremain.c:256: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscoremain.c:262: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscoremain.c:935: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:271: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:272: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:273: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:274: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:275: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:276: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:277: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:278: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:279: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:280: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:281: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:662: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/httrack.c:752: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:413: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:414: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:415: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:416: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:417: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:418: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:419: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:420: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:421: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:422: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsweb.c:423: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:188: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:507: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:508: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:509: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:510: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:511: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:512: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:580: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.c:581: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:115: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:246: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:247: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:248: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:249: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:250: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:251: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:314: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/proxy/proxytrack.h:315: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:151: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:158: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:161: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:166: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:174: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:177: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:188: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:243: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:245: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:248: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:257: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htstools.c:647: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htsbauth.c:364: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsbauth.c:387: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htscache.c:473: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsserver.h:112: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsserver.h:187: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsjava.c:312: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsjava.c:379: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsjava.c:407: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsjava.c:472: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsjava.c:483: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htslib.c:593: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:809: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:1743: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:1874: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:1896: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:1984: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2085: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2604: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2605: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2606: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2607: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2608: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2609: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2672: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2673: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2906: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2928: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:2996: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:4802: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htslib.c:5353: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:5354: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:5355: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:5357: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:5429: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htslib.c:5435: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscore.c:208: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htscore.c:277: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htscore.c:279: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htscore.c:357: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htscore.c:394: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htscore.c:1544: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscore.c:3330: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscore.c:3361: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htshash.c:140: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htshash.c:217: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsname.c:733: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htsname.c:749: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htsname.c:933: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htsname.c:1520: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htszlib.c:76: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htszlib.c:81: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htscatchurl.c:268: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsinthash.c:156: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsinthash.c:159: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsinthash.c:176: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsinthash.c:179: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsinthash.c:226: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsinthash.c:253: Warning:old style assignment ambiguity in "=&". Assuming "= &" indent: ./src/htsftp.c:169: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsftp.c:177: Warning:old style assignment ambiguity in "=-". Assuming "= -" indent: ./src/htsfilters.c:67: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: ./src/htsfilters.c:80: Warning:old style assignment ambiguity in "=*". Assuming "= *"
Diffstat (limited to 'src/htsopt.h')
-rw-r--r--src/htsopt.h337
1 files changed, 166 insertions, 171 deletions
diff --git a/src/htsopt.h b/src/htsopt.h
index eb6e84d..e76d8f2 100644
--- a/src/htsopt.h
+++ b/src/htsopt.h
@@ -17,25 +17,21 @@ 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 parameters block */
/* Called by httrack.h and some other files */
/* Author: Xavier Roche */
/* ------------------------------------------------------------ */
-
#ifndef HTTRACK_DEFOPT
#define HTTRACK_DEFOPT
@@ -72,7 +68,7 @@ typedef struct String String;
#ifndef HTS_DEF_STRUCT_String
#define HTS_DEF_STRUCT_String
struct String {
- char* buffer_;
+ char *buffer_;
size_t length_;
size_t capacity_;
};
@@ -91,8 +87,8 @@ struct t_proxy {
int active;
String name;
int port;
- String bindhost; // bind this host
-};
+ String bindhost; // bind this host
+};
/* Structure utile pour copier en bloc les paramètres */
#ifndef HTS_DEF_FWSTRUCT_htsfilters
@@ -100,18 +96,18 @@ struct t_proxy {
typedef struct htsfilters htsfilters;
#endif
struct htsfilters {
- char*** filters;
- int* filptr;
+ char ***filters;
+ int *filptr;
//int* filter_max;
};
/* User callbacks chain */
-typedef int (*htscallbacksfncptr)(void);
+typedef int (*htscallbacksfncptr) (void);
typedef struct htscallbacks htscallbacks;
struct htscallbacks {
- void* moduleHandle;
+ void *moduleHandle;
htscallbacksfncptr exitFnc;
- htscallbacks * next;
+ htscallbacks *next;
};
/* filenote() internal file structure */
@@ -120,8 +116,8 @@ struct htscallbacks {
typedef struct filenote_strc filenote_strc;
#endif
struct filenote_strc {
- FILE* lst;
- char path[STRING_SIZE*2];
+ FILE *lst;
+ char path[STRING_SIZE * 2];
};
/* concat() functions */
@@ -131,7 +127,7 @@ typedef struct concat_strc concat_strc;
#endif
struct concat_strc {
int index;
- char buff[16][STRING_SIZE*2*2];
+ char buff[16][STRING_SIZE * 2 * 2];
};
/* int2 functions */
@@ -140,10 +136,10 @@ struct concat_strc {
typedef struct strc_int2bytes2 strc_int2bytes2;
#endif
struct strc_int2bytes2 {
- char catbuff[CATBUFF_SIZE];
+ char catbuff[CATBUFF_SIZE];
char buff1[256];
char buff2[32];
- char* buffadr[2];
+ char *buffadr[2];
};
/* cmd callback */
@@ -170,13 +166,13 @@ struct fspc_strc {
#ifndef HTS_DEF_DEFSTRUCT_hts_log_type
#define HTS_DEF_DEFSTRUCT_hts_log_type
typedef enum hts_log_type {
- LOG_DEBUG,
- LOG_INFO,
- LOG_NOTICE,
- LOG_WARNING,
- LOG_ERROR,
- LOG_PANIC,
- LOG_ERRNO = 1 << 8
+ LOG_DEBUG,
+ LOG_INFO,
+ LOG_NOTICE,
+ LOG_WARNING,
+ LOG_ERROR,
+ LOG_PANIC,
+ LOG_ERRNO = 1 << 8
} hts_log_type;
#endif
@@ -208,7 +204,7 @@ typedef struct struct_inthash struct_inthash, *inthash;
typedef struct htsoptstate htsoptstate;
#endif
struct htsoptstate {
- htsmutex lock; /* 3.41 */
+ htsmutex lock; /* 3.41 */
/* */
int stop;
int exit_xh;
@@ -216,32 +212,32 @@ struct htsoptstate {
/* */
int mimehtml_created;
String mimemid;
- FILE* mimefp;
+ FILE *mimefp;
int delayedId;
/* */
- filenote_strc strc;
- /* Functions context (avoir thread variables!) */
+ filenote_strc strc;
+ /* Functions context (avoir thread variables!) */
htscallbacks callbacks;
- concat_strc concat;
- usercommand_strc usercmd;
- fspc_strc fspc;
- char *userhttptype;
- int verif_backblue_done;
- int verif_external_status;
- t_dnscache *dns_cache;
- /* HTML parsing state */
- char _hts_errmsg[HTS_CDLMAXSIZE + 256];
- int _hts_in_html_parsing;
- int _hts_in_html_done;
- int _hts_in_html_poll;
- int _hts_setpause;
- int _hts_in_mirror;
- char** _hts_addurl;
+ concat_strc concat;
+ usercommand_strc usercmd;
+ fspc_strc fspc;
+ char *userhttptype;
+ int verif_backblue_done;
+ int verif_external_status;
+ t_dnscache *dns_cache;
+ /* HTML parsing state */
+ char _hts_errmsg[HTS_CDLMAXSIZE + 256];
+ int _hts_in_html_parsing;
+ int _hts_in_html_done;
+ int _hts_in_html_poll;
+ int _hts_setpause;
+ int _hts_in_mirror;
+ char **_hts_addurl;
int _hts_cancel;
- htsoptstatecancel *cancel; /* 3.41 */
- char HTbuff[2048];
+ htsoptstatecancel *cancel; /* 3.41 */
+ char HTbuff[2048];
unsigned int debug_state;
- unsigned int tmpnameid; /* 3.41 */
+ unsigned int tmpnameid; /* 3.41 */
};
/* Library handles */
@@ -264,11 +260,11 @@ struct htslibhandles {
/* Javascript parser flags */
typedef enum htsparsejava_flags {
- HTSPARSE_NONE = 0, // don't parse
- HTSPARSE_DEFAULT = 1, // parse default (all)
- HTSPARSE_NO_CLASS = 2, // don't parse .java
- HTSPARSE_NO_JAVASCRIPT = 4, // don't parse .js
- HTSPARSE_NO_AGGRESSIVE = 8 // don't aggressively parse .js or .java
+ HTSPARSE_NONE = 0, // don't parse
+ HTSPARSE_DEFAULT = 1, // parse default (all)
+ HTSPARSE_NO_CLASS = 2, // don't parse .java
+ HTSPARSE_NO_JAVASCRIPT = 4, // don't parse .js
+ HTSPARSE_NO_AGGRESSIVE = 8 // don't aggressively parse .js or .java
} htsparsejava_flags;
// paramètres httrack (options)
@@ -277,113 +273,113 @@ typedef enum htsparsejava_flags {
typedef struct httrackp httrackp;
#endif
struct httrackp {
- size_t size_httrackp; // size of this structure
+ size_t size_httrackp; // size of this structure
/* */
- int wizard; // wizard aucun/grand/petit
- int flush; // fflush sur les fichiers log
- int travel; // type de déplacements (same domain etc)
- int seeker; // up & down
- int depth; // nombre de niveaux de récursion
- int extdepth; // nombre de niveaux de récursion à l'éxtérieur
- int urlmode; // liens relatifs etc
- int debug; // mode débug log
- int getmode; // sauver html, images..
- FILE* log; // fichier log
- FILE* errlog; // et erreur
- LLint maxsite; // taille max site
- LLint maxfile_nonhtml; // taille max non html
- LLint maxfile_html; // taille max html
- int maxsoc; // nbre sockets
- LLint fragment; // fragmentation d'un site
- int nearlink; // prendre les images/data proche d'une page mais à l'extérieur
- int makeindex; // faire un index
- int kindex; // et un index 'keyword'
- int delete_old; // effacer anciens fichiers
- int timeout; // nombre de secondes de timeout
- int rateout; // nombre d'octets minium pour le transfert
- int maxtime; // temps max en secondes
- int maxrate; // taux de transfert max
- int mms_maxtime; // max duration of a mms file
- float maxconn; // nombre max de connexions/s
- int waittime; // démarrage programmé
- int cache; // génération d'un cache
+ int wizard; // wizard aucun/grand/petit
+ int flush; // fflush sur les fichiers log
+ int travel; // type de déplacements (same domain etc)
+ int seeker; // up & down
+ int depth; // nombre de niveaux de récursion
+ int extdepth; // nombre de niveaux de récursion à l'éxtérieur
+ int urlmode; // liens relatifs etc
+ int debug; // mode débug log
+ int getmode; // sauver html, images..
+ FILE *log; // fichier log
+ FILE *errlog; // et erreur
+ LLint maxsite; // taille max site
+ LLint maxfile_nonhtml; // taille max non html
+ LLint maxfile_html; // taille max html
+ int maxsoc; // nbre sockets
+ LLint fragment; // fragmentation d'un site
+ int nearlink; // prendre les images/data proche d'une page mais à l'extérieur
+ int makeindex; // faire un index
+ int kindex; // et un index 'keyword'
+ int delete_old; // effacer anciens fichiers
+ int timeout; // nombre de secondes de timeout
+ int rateout; // nombre d'octets minium pour le transfert
+ int maxtime; // temps max en secondes
+ int maxrate; // taux de transfert max
+ int mms_maxtime; // max duration of a mms file
+ float maxconn; // nombre max de connexions/s
+ int waittime; // démarrage programmé
+ int cache; // génération d'un cache
//int aff_progress; // barre de progression
- int shell; // gestion d'un shell par pipe stdin/stdout
- t_proxy proxy; // configuration du proxy
- int savename_83; // conversion 8-3 pour les noms de fichiers
- int savename_type; // type de noms: structure originale/html-images en un seul niveau
- String savename_userdef; // structure userdef (ex: %h%p/%n%q.%t)
- int savename_delayed; // delayed type check
- int delayed_cached; // delayed type check can be cached to speedup updates
- int mimehtml; // MIME-html
- int user_agent_send; // user agent (ex: httrack/1.0 [sun])
- String user_agent; //
- String referer; // referer
- String from; // from
- String path_log; // chemin pour cache et log
- String path_html; // chemin pour miroir
- String path_html_utf8; // chemin pour miroir, UTF-8
- String path_bin; // chemin pour templates
- int retry; // nombre d'essais supplémentaires en cas d'échec
- int makestat; // mettre à jour un fichier log de statistiques de transfert
- int maketrack; // mettre à jour un fichier log de statistiques d'opérations
- int parsejava; // parsing des classes java pour récupérer les class, gif & cie ; see htsparsejava_flags
- int hostcontrol; // abandon d'un host trop lent etc.
- int errpage; // générer une page d'erreur en cas de 404 etc.
- int check_type; // si type inconnu (cgi,asp,/) alors tester lien (et gérer moved éventuellement)
- int all_in_cache; // tout mettre en cache!
- int robots; // traitement des robots
- int external; // pages externes->pages d'erreur
- int passprivacy; // pas de mot de pass dans les liens externes?
- int includequery; // include la query-string
- int mirror_first_page; // miroir des liens
- String sys_com; // commande système
- int sys_com_exec; // executer commande
- int accept_cookie; // gestion des cookies
- t_cookie* cookie;
- int http10; // forcer http 1.0
- int nokeepalive; // pas de keep-alive
- int nocompression; // pas de compression
- int sizehack; // forcer réponse "mis à jour" si taille identique
- int urlhack; // force "url normalization" to avoid loops
- int tolerant; // accepter content-length incorrect
- int parseall; // essayer de tout parser (tags inconnus contenant des liens, par exemple)
- int parsedebug; // débugger parser (debug!)
- int norecatch; // ne pas reprendre les fichiers effacés localement par l'utilisateur
- int verbosedisplay; // animation textuelle
- String footer; // ligne d'infos
- int maxcache; // maximum en mémoire au niveau du cache (backing)
+ int shell; // gestion d'un shell par pipe stdin/stdout
+ t_proxy proxy; // configuration du proxy
+ int savename_83; // conversion 8-3 pour les noms de fichiers
+ int savename_type; // type de noms: structure originale/html-images en un seul niveau
+ String savename_userdef; // structure userdef (ex: %h%p/%n%q.%t)
+ int savename_delayed; // delayed type check
+ int delayed_cached; // delayed type check can be cached to speedup updates
+ int mimehtml; // MIME-html
+ int user_agent_send; // user agent (ex: httrack/1.0 [sun])
+ String user_agent; //
+ String referer; // referer
+ String from; // from
+ String path_log; // chemin pour cache et log
+ String path_html; // chemin pour miroir
+ String path_html_utf8; // chemin pour miroir, UTF-8
+ String path_bin; // chemin pour templates
+ int retry; // nombre d'essais supplémentaires en cas d'échec
+ int makestat; // mettre à jour un fichier log de statistiques de transfert
+ int maketrack; // mettre à jour un fichier log de statistiques d'opérations
+ int parsejava; // parsing des classes java pour récupérer les class, gif & cie ; see htsparsejava_flags
+ int hostcontrol; // abandon d'un host trop lent etc.
+ int errpage; // générer une page d'erreur en cas de 404 etc.
+ int check_type; // si type inconnu (cgi,asp,/) alors tester lien (et gérer moved éventuellement)
+ int all_in_cache; // tout mettre en cache!
+ int robots; // traitement des robots
+ int external; // pages externes->pages d'erreur
+ int passprivacy; // pas de mot de pass dans les liens externes?
+ int includequery; // include la query-string
+ int mirror_first_page; // miroir des liens
+ String sys_com; // commande système
+ int sys_com_exec; // executer commande
+ int accept_cookie; // gestion des cookies
+ t_cookie *cookie;
+ int http10; // forcer http 1.0
+ int nokeepalive; // pas de keep-alive
+ int nocompression; // pas de compression
+ int sizehack; // forcer réponse "mis à jour" si taille identique
+ int urlhack; // force "url normalization" to avoid loops
+ int tolerant; // accepter content-length incorrect
+ int parseall; // essayer de tout parser (tags inconnus contenant des liens, par exemple)
+ int parsedebug; // débugger parser (debug!)
+ int norecatch; // ne pas reprendre les fichiers effacés localement par l'utilisateur
+ int verbosedisplay; // animation textuelle
+ String footer; // ligne d'infos
+ int maxcache; // maximum en mémoire au niveau du cache (backing)
//int maxcache_anticipate; // maximum de liens à anticiper (majorant)
- int ftp_proxy; // proxy http pour ftp
- String filelist; // fichier liste URL à inclure
- String urllist; // fichier liste de filtres à inclure
- htsfilters filters; // contient les pointeurs pour les filtres
- hash_struct* hash; // hash structure
- robots_wizard* robotsptr; // robots ptr
- String lang_iso; // en, fr ..
- String mimedefs; // ext1=mimetype1\next2=mimetype2..
- String mod_blacklist; // (3.41)
- int convert_utf8; // filenames UTF-8 conversion (3.46)
+ int ftp_proxy; // proxy http pour ftp
+ String filelist; // fichier liste URL à inclure
+ String urllist; // fichier liste de filtres à inclure
+ htsfilters filters; // contient les pointeurs pour les filtres
+ hash_struct *hash; // hash structure
+ robots_wizard *robotsptr; // robots ptr
+ String lang_iso; // en, fr ..
+ String mimedefs; // ext1=mimetype1\next2=mimetype2..
+ String mod_blacklist; // (3.41)
+ int convert_utf8; // filenames UTF-8 conversion (3.46)
//
- int maxlink; // nombre max de liens
- int maxfilter; // nombre max de filtres
+ int maxlink; // nombre max de liens
+ int maxfilter; // nombre max de filtres
//
- char* exec; // adresse du nom de l'éxecutable
+ char *exec; // adresse du nom de l'éxecutable
//
- int quiet; // poser des questions autres que wizard?
- int keyboard; // vérifier stdin
- int bypass_limits; // bypass built-in limits
- int background_on_suspend; // background process on suspend signal
+ int quiet; // poser des questions autres que wizard?
+ int keyboard; // vérifier stdin
+ int bypass_limits; // bypass built-in limits
+ int background_on_suspend; // background process on suspend signal
//
- int is_update; // c'est une update (afficher "File updated...")
- int dir_topindex; // reconstruire top index par la suite
+ int is_update; // c'est une update (afficher "File updated...")
+ int dir_topindex; // reconstruire top index par la suite
//
// callbacks
- t_hts_htmlcheck_callbacks *callbacks_fun;
+ t_hts_htmlcheck_callbacks *callbacks_fun;
// store library handles
htslibhandles libHandles;
//
- htsoptstate state; // state
+ htsoptstate state; // state
};
// stats for httrack
@@ -392,39 +388,38 @@ struct httrackp {
typedef struct hts_stat_struct hts_stat_struct;
#endif
struct hts_stat_struct {
- LLint HTS_TOTAL_RECV; // flux entrant reçu
- LLint stat_bytes; // octets écrits sur disque
+ LLint HTS_TOTAL_RECV; // flux entrant reçu
+ LLint stat_bytes; // octets écrits sur disque
// int HTS_TOTAL_RECV_STATE; // status: 0 tout va bien 1: ralentir un peu 2: ralentir 3: beaucoup
- TStamp stat_timestart; // départ
+ TStamp stat_timestart; // départ
//
- LLint total_packed; // flux entrant compressé reçu
- LLint total_unpacked; // flux entrant compressé reçu
- int total_packedfiles; // fichiers compressés
+ LLint total_packed; // flux entrant compressé reçu
+ LLint total_unpacked; // flux entrant compressé reçu
+ int total_packedfiles; // fichiers compressés
//
- TStamp istat_timestart[2]; // départ pour calcul instantanné
- LLint istat_bytes[2]; // calcul pour instantanné
- TStamp istat_reference01; // top départ donné par #0 à #1
- int istat_idlasttimer; // id du timer qui a récemment donné une stat
+ TStamp istat_timestart[2]; // départ pour calcul instantanné
+ LLint istat_bytes[2]; // calcul pour instantanné
+ TStamp istat_reference01; // top départ donné par #0 à #1
+ int istat_idlasttimer; // id du timer qui a récemment donné une stat
//
- int stat_files; // nombre de fichiers écrits
- int stat_updated_files; // nombre de fichiers mis à jour
- int stat_background; // nombre de fichiers écrits en arrière plan
+ int stat_files; // nombre de fichiers écrits
+ int stat_updated_files; // nombre de fichiers mis à jour
+ int stat_background; // nombre de fichiers écrits en arrière plan
//
- int stat_nrequests; // nombre de requêtes sur socket
- int stat_sockid; // nombre de sockets allouées au total
- int stat_nsocket; // nombre de sockets
- int stat_errors; // nombre d'erreurs
- int stat_errors_front; // idem, mais au tout premier niveau
- int stat_warnings; // '' warnings
- int stat_infos; // '' infos
- int nbk; // fichiers anticipés en arrière plan et terminés
- LLint nb; // données transférées actuellement (estimation)
+ int stat_nrequests; // nombre de requêtes sur socket
+ int stat_sockid; // nombre de sockets allouées au total
+ int stat_nsocket; // nombre de sockets
+ int stat_errors; // nombre d'erreurs
+ int stat_errors_front; // idem, mais au tout premier niveau
+ int stat_warnings; // '' warnings
+ int stat_infos; // '' infos
+ int nbk; // fichiers anticipés en arrière plan et terminés
+ LLint nb; // données transférées actuellement (estimation)
//
LLint rate;
//
- TStamp last_connect; // last connect() call
- TStamp last_request; // last request issued
+ TStamp last_connect; // last connect() call
+ TStamp last_request; // last request issued
};
#endif
-