From e6eb8c0224e585735c113613b7fa42402778476d Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Tue, 18 Jun 2013 16:23:52 +0000 Subject: transfered => transferred --- html/plug.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html/plug.html') diff --git a/html/plug.html b/html/plug.html index 1b82c46..93baccd 100755 --- a/html/plug.html +++ b/html/plug.html @@ -197,7 +197,7 @@ Below the list of callbacks, and associated external wrappers. check_mimeCalled when a link download has begun, and needs to be tested against its MIME type. The adr and fil are the address and URI of the link being tested, and the mime string contains the link type being processed. The passed status value has the following meaning: 0 if the link is to be accepted by default, 1 if the link is to be refused by default, and -1 if no decision has yet been taken by the engine
return value: same meaning as the passed status value ; you may generally return -1 to let the engine take the decision by itselfint mycallback(t_hts_callbackarg *carg, httrackp* opt, const char* adr, const char* fil, const char* mime, int status); pauseCalled when the engine must pause. When the lockfile passed is deleted, the function can return
return value: nonevoid mycallback(t_hts_callbackarg *carg, httrackp* opt, const char* lockfile); filesaveCalled when a file is to be saved on disk
return value: nonevoid mycallback(t_hts_callbackarg *carg, httrackp* opt, const char* file); -filesave2Called when a file is to be saved or checked on disk
The hostname, filename and local filename are given. Two additional flags tells if the local file is new (is_new), if the local file is to be modified (is_modified), and if the file was not updated remotely (not_updated).
(!is_new && !is_modified): the file is up-to-date, and will not be modified
(is_new && is_modified): a new file will be written (or an updated file is being written)
(!is_new && is_modified): a file is being updated (append)
(is_new && !is_modified): an empty file will be written ("do not recatch locally erased files")
not_updated: the file was not re-downloaded because it was up-to-date (no data transfered again)

return value: nonevoid mycallback(t_hts_callbackarg *carg, httrackp* opt, const char* hostname, const char* filename, const char* localfile, int is_new, int is_modified, int not_updated); +filesave2Called when a file is to be saved or checked on disk
The hostname, filename and local filename are given. Two additional flags tells if the local file is new (is_new), if the local file is to be modified (is_modified), and if the file was not updated remotely (not_updated).
(!is_new && !is_modified): the file is up-to-date, and will not be modified
(is_new && is_modified): a new file will be written (or an updated file is being written)
(!is_new && is_modified): a file is being updated (append)
(is_new && !is_modified): an empty file will be written ("do not recatch locally erased files")
not_updated: the file was not re-downloaded because it was up-to-date (no data transferred again)

return value: nonevoid mycallback(t_hts_callbackarg *carg, httrackp* opt, const char* hostname, const char* filename, const char* localfile, int is_new, int is_modified, int not_updated); linkdetectedCalled when a link has been detected
return value: 1 if the link can be analyzed, 0 if the link must not even be consideredint mycallback(t_hts_callbackarg *carg, httrackp* opt, char* link); linkdetected2Called when a link has been detected
return value: 1 if the link can be analyzed, 0 if the link must not even be consideredint mycallback(t_hts_callbackarg *carg, httrackp* opt, char* link, const const char* tag_start); -- cgit v1.2.3